我如何创建自定义文件附加,要附加一个或多个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',
});