-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add attributes from toolbar options #1084
Comments
Really simple feature, and enhances the UI with a standard means of helping users. |
Would be a great enhancement to a great product. |
I don't want Quill's toolbar to be an endlessly configurable HTML generator. You can always pass in custom HTML toolbar container for advanced use cases and Quill will attach to those inputs. For quick simple use cases Quill recognizes a simple list of formats. Is can be debated forever where the "quick simple" line should be and how far it can be extended but the core Quill project has drawn that line where it feels is the right balance between simplicity and power. Those that disagree please feel free to extend the Toolbar module and publish separately to npm if you would like to share with others. The naming convention is |
怎么添加控制文本行间距 |
Starting from a simple addition of features like to add tooltips to the buttons, I looked into your file and found an example where just add your toolbar by creating an html markup.
While this is very good, it is often more useful to generate the toolbar through the options.
It would be very useful to be able to pass the attributes to the options so that these are attached to the elements.
For example like this:
I think this adds a simple but powerful additional customization without touching the html.
The text was updated successfully, but these errors were encountered: