码迷,mamicode.com
首页 > 其他好文 > 详细

UEditor 自定义 工具条

时间:2017-10-18 19:59:05      阅读:210      评论:0      收藏:0      [点我收藏+]

标签: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 自定义 工具条

标签:ueditor 自定义 工具条

原文地址:http://8818968.blog.51cto.com/8808968/1973769

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!