小编Har*_*dik的帖子

在 Quill Rich 编辑器中包含标题

我正在开发 quill rich 编辑器,我需要所有标题(h1....h6)。我尝试了不同的方法,但它只显示(h1 和 h2),有时它显示 3 个标题。

网页代码:

<div id="standalone-container">
    <div id="toolbar-container">
        <span class="ql-formats">
          <select class="ql-font"></select>
          <select class="ql-header"></select>
        </span>
        <span class="ql-formats">
          <button class="ql-bold"></button>
          <button class="ql-italic"></button>
          <button class="ql-underline"></button>
          <button class="ql-strike"></button>
        </span>
        <span class="ql-formats">
          <select class="ql-color"></select>
          <select class="ql-background"></select>
        </span>
        <span class="ql-formats">
          <button class="ql-script" value="sub"></button>
          <button class="ql-script" value="super"></button>
        </span>
        <span class="ql-formats">
          <button class="ql-blockquote"></button>
          <button class="ql-code-block"></button>
        </span>
    </div>
    <div id="editor-container" style="height: 400px;"> </div>
    <input type="hidden" value="" name="blog_description" id="blog_description" required="">
</div>
Run Code Online (Sandbox Code Playgroud)

JS代码:

<script src="{{url('quill/quill.min.js')}}"></script>
<script>           
    var quill = new Quill('#editor-container', {
        modules: {
          // …
Run Code Online (Sandbox Code Playgroud)

html javascript jquery quill

4
推荐指数
1
解决办法
8744
查看次数

标签 统计

html ×1

javascript ×1

jquery ×1

quill ×1