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
Can you elaborate on what you are trying to do and what you mean by override?
Hy @jhchen
i want to change the tooltip

into something like

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
Most helpful comment
Can we re-open this issue? It is not at all clear how one create's their own theme.