Skip to content Skip to sidebar Skip to footer

This Is Pointing To The Quill Editor Toolbar

I use Quilljs for a textarea on my website. The standard editor don't support image upload to the server, so i have to implement a custom handler. In the documentation is written t

Solution 1:

The easiest way to solve this problem is to change

this.editor.getModule("toolbar").addHandler("image", imageHandler);

into

this.editor.getModule("toolbar").addHandler("image", imageHandler.bind(this));

now you can access your components variables/members in your image handler function. The toolbar have not anymore the focus.

Post a Comment for "This Is Pointing To The Quill Editor Toolbar"