最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - List of recognized quill toolbar classes - Stack Overflow

programmeradmin1浏览0评论

The documentation for the quill module states:

...you can manually create a toolbar in HTML, and pass the DOM element or selector into Quill. The ql-toolbar class will be added to the toolbar container and Quill attach appropriate handlers to and elements with a class name in the form ql-${format}. Buttons element may optionally have a custom value attribute.

The example that follows includes examples such as

<button class="ql-bold"></button>
<button class="ql-script" value="sub"></button>
<button class="ql-script" value="super"></button>

Is there a list of all the recognized ql-${format} classes somewhere that I can reference? It would be really helpful to have a table of these in the Toolbar documentation section.

The documentation for the quill module states:

...you can manually create a toolbar in HTML, and pass the DOM element or selector into Quill. The ql-toolbar class will be added to the toolbar container and Quill attach appropriate handlers to and elements with a class name in the form ql-${format}. Buttons element may optionally have a custom value attribute.

The example that follows includes examples such as

<button class="ql-bold"></button>
<button class="ql-script" value="sub"></button>
<button class="ql-script" value="super"></button>

Is there a list of all the recognized ql-${format} classes somewhere that I can reference? It would be really helpful to have a table of these in the Toolbar documentation section.

Share Improve this question asked Oct 31, 2016 at 18:04 TantelopeTantelope 6171 gold badge10 silver badges24 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 21

A list of supported formats.

An example with the HTML of all the toolbar options.

发布评论

评论列表(0)

  1. 暂无评论