最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - All the toolbar buttons of Froala - Stack Overflow

programmeradmin2浏览0评论

I would like to know the name of all the toolbar buttons of Froala (). I know the following ones:

"undo", "redo", "bold", "italic", "underline", "strikeThrough", "selectAll", "paragraphStyle", "subscript", "superscript", "paragraphFormat", "fontFamily", "fontSize", "align", "formatOL", "formatUL", "outdent", "indent", "quote", "color", "emoticons", "insertTable", "createLink", "insertImage", "insertVideo", "insertFile", "fullscreen", "html", "save"

I miss at least the Insert Horizontal Line button.

I would like to know the name of all the toolbar buttons of Froala (https://www.froala./wysiwyg-editor). I know the following ones:

"undo", "redo", "bold", "italic", "underline", "strikeThrough", "selectAll", "paragraphStyle", "subscript", "superscript", "paragraphFormat", "fontFamily", "fontSize", "align", "formatOL", "formatUL", "outdent", "indent", "quote", "color", "emoticons", "insertTable", "createLink", "insertImage", "insertVideo", "insertFile", "fullscreen", "html", "save"

I miss at least the Insert Horizontal Line button.

Share asked Jul 29, 2016 at 12:29 AliukAliuk 1,3873 gold badges20 silver badges36 bronze badges
Add a ment  | 

3 Answers 3

Reset to default 6

There is an example with all possible feature of froala on their official page: https://www.froala./wysiwyg-editor/examples/full-featured

toolbarButtons: ['fullscreen', 'bold', 'italic', 'underline', 'strikeThrough', 'subscript', 'superscript', 'fontFamily', 'fontSize', 'color', 'emoticons', 'inlineStyle', 'paragraphStyle', 'paragraphFormat', 'align', 'formatOL', 'formatUL', 'outdent'

Finally I found the Insert Horizontal Line button. It is "insertHR".

new FroalaEditor('#froala-editor',  {
    toolbarButtons: ['fullscreen', 'bold', 'italic', 'underline', 'strikeThrough', 'subscript', 'superscript', '|', 'fontFamily', 'fontSize', 'color', 'inlineStyle', 'paragraphStyle', '|', 'paragraphFormat', 'align', 'formatOL', 'formatUL', 'outdent', 'indent', 'quote', '-', 'insertLink', 'insertImage', 'insertVideo', 'insertFile', 'insertTable', '|', 'emoticons', 'specialCharacters', 'insertHR', 'selectAll', 'clearFormatting', '|', 'print', 'help', 'html', '|', 'undo', 'redo','trackChanges','markdown']
});
发布评论

评论列表(0)

  1. 暂无评论