froala无序列表没有在编辑器中显示

时间:2017-06-26 21:19:20

标签: plugins froala

我在我的网站CMS上使用Froala。 我正在尝试向编辑器添加无序列表。 我已添加了list插件,如下所示:

<script src="js/plugins/lists.min.js"></script>

当我初始化编辑器时,我将其添加到工具栏按钮

    toolbarButtons: ['fullscreen','undo', 'redo' , '|', 'bold', 'italic', 'underline', 
                     'outdent', 'indent', 'fontSize' , 'lists', 'color',
                     'clearFormatting', 'insertTable', 'insertImage',  
                     'insertFile', 'html'],

但它没有出现在编辑器中。 为什么呢?

p.s:我还尝试添加'insertUnorderedList'而不是'lists'

1 个答案:

答案 0 :(得分:3)

我在toolbarButtons中使用了不正确的设置。 正确的术语是 formatUL formatOL ,而不是列表

https://www.froala.com/wysiwyg-editor/docs/options#toolbarButtons

相关问题