【发布时间】:2021-08-19 15:59:22
【问题描述】:
我正在使用 froala editor 并希望在我的 froala 编辑器中使用 quickInsertTags 插件功能。
根据document,我需要包含quick_insert.min.js 才能使用quickInsertTags。
我已经包含了这个js文件,但它仍然没有显示插入div标签的选项。
html
<div id="example"></div>
JS
var editor = new FroalaEditor('#example', {
toolbarButtons: [['bold', 'italic', 'underline'], ['fontFamily', 'fontSize']],
quickInsertEnabled: true,
quickInsertTags: ['p', 'div', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6']
});
【问题讨论】:
标签: javascript jquery wysiwyg froala