UEditor如何自定义工具条
更新:HHH   时间:2023-1-7


这篇文章给大家分享的是有关UEditor如何自定义工具条的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。

<script>
$(function() {
//本来是这样的:UE.getEditor('editor'); 传入参数后就是下面那样子了,toolbars里的就是工具的图标
UE.getEditor('editor', {
toolbar: [
['fullscreen', 'source', 'undo', 'redo', 'bold', 'italic', 
'underline','fontborder', 'backcolor', 'fontsize', 'fontfamily', 
'justifyleft', 'justifyright','justifycenter', 'justifyjustify', 
'strikethrough','superscript', 'subscript', 'removeformat',
'formatmatch','autotypeset', 'blockquote', 'pasteplain', '|',
'forecolor', 'backcolor','insertorderedlist', 'insertunorderedlist', 
'selectall', 'cleardoc', 'link', 'unlink','emotion', 'help']
]
});
})
</script>

我配置的时候配置key使用的是toolbar,很多博文使用的是toolbars,但是我使用toolbars不起作用,不知道是不是ueditor的版本问题。

感谢各位的阅读!关于“UEditor如何自定义工具条”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,让大家可以学到更多知识,如果觉得文章不错,可以把它分享出去让更多的人看到吧!

返回web开发教程...