Quill: How to Override tooltip of active theme (snow) ?

Created on 16 Jun 2017  路  9Comments  路  Source: quilljs/quill

How do i override tooltip on the active theme (snow) ?, i want to replace the default html element and hooks a particular javascript function, but all I know is calling

Var tooltip = Quill.import ('ui / tooltip');

Even after trying to understand the source code, it remains difficult for me if there is no sample

needs clarification

Most helpful comment

Can we re-open this issue? It is not at all clear how one create's their own theme.

All 9 comments

Can you elaborate on what you are trying to do and what you mean by override?

Hy @jhchen
i want to change the tooltip
ss
into something like
ss2
and hook javascript function (ex. event click).

I would have suggested to create your own theme, that extends the snow default, but I'm currently trying to do the same with bubble and facing a weird problem I posted on StackOverflow so I cannot help you much more.

@guillaumepotier I just created my own theme (after days of trying and still fail)

@triawarman yould you care sharing here your code? I'm having hard time to do extend bubble one.

@guillaumepotier i dont do something like import or extend any class, just modify quill.js file, copy function module 63 and paste as function module 109, then add lines code in module 62

var _owntheme = __webpack_require__(109);
var _owntheme2 = _interopRequireDefault(_owntheme);

_core2.default.register({
...
'themes/owntheme': _owntheme.default,
...
}, true);

its hard for me if there's no guide, or sample code.

Can we re-open this issue? It is not at all clear how one create's their own theme.

Please re-open!

Hi @boldwade & @philippkuehn

I had issues too to import and override default bubble theme. Documentation is perfect to create a new theme from scratch (no need to re-open issue for that IMO).

_However_, if you want to extend snow or bubble, you'll have to play a bit with your project configuration in order to call Quill src files and not dist ones since it does not export enough :(

Here is my really useful stackoveflow issue.

Hope that helps

Was this page helpful?
0 / 5 - 0 ratings

Related issues

benbro picture benbro  路  3Comments

GildedHonour picture GildedHonour  路  3Comments

splacentino picture splacentino  路  3Comments

visore picture visore  路  3Comments

Yves-K picture Yves-K  路  3Comments