slab / quill

Quill is a modern WYSIWYG editor built for compatibility and extensibility

Home Page:https://quilljs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[RFC] The toolbar should add classes to its buttons

Nek- opened this issue · comments

Problem

While customizing the experience with Quill, you may need to add some HTML in the toolbar content. This is a behavior 100% supported by Quill and it's awesome!

What is not so awesome however is that the toolbar buttons are reset using selectors like .toolbar button. It means it will override entirely the CSS of your app... Even for the code you added! You will need to duplicate your CSS code, especially for Quill buttons.

Solution

The toolbar should add classes to its buttons so the themes do not target all buttons but only those managed by Quill!

Side information

Version: Quill v2.
Browser(s): All.
Code proposal: #4282