羽毛笔丰富的编辑器中的自定义文件附件

时间:2020-10-03 00:51:36

标签: javascript node.js quill

我如何创建自定义文件附加,要附加一个或多个PDF文件,我不认为 Quill 在文档中有此内容。

  <div class="w-md"> /* my own style */
    <div id="toolbar"></div>
    <div id="editor"></div>
  </div>


// Quill rich text editor API
let options = [
  [{ header: [1, 2, 3, 4, 5, 6, false] }],
  ['bold', 'italic', 'underline', 'strike', 'link', 'code'],
  ['blockquote', 'code-block'],
  [{ list: 'ordered' }, { list: 'bullet' }],
  [{ script: 'sub' }, { script: 'super' }],
  [{ indent: '-1' }, { indent: '+1' }],
  [{ direction: 'rtl' }],
  ['image', 'video', 'formula'],
  // [{ font: [] }],
  [{ align: ['center'] }],
];

let quill = new Quill('#editor', {
  modules: {
    toolbar: options,
  },
  theme: 'snow',
});

0 个答案:

没有答案