Javascript 羽毛笔丰富编辑器中的自定义文件附加
如何创建自定义文件附加,要附加一个或多个PDF文件,我不认为Quill文档中有此内容Javascript 羽毛笔丰富编辑器中的自定义文件附加,javascript,node.js,quill,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
<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',
});
/*我自己的风格*/
//Quill富文本编辑器API
让选项=[
[{header:[1,2,3,4,5,6,false]},
[“粗体”、“斜体”、“下划线”、“删除”、“链接”、“代码”],
['blockquote','code block'],
[{list:'ordered'},{list:'bullet'}],
[{script:'sub'},{script:'super'}],
[{indent:'-1'},{indent:'+1'}],
[{方向:'rtl'}],
[“图像”、“视频”、“公式”],
//[{font:[]}],
[{align:['center']}],
];
设羽毛笔=新羽毛笔(“#编辑器”{
模块:{
工具栏:选项,
},
主题:"雪",,
});