<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的版本问题。原文地址:http://8818968.blog.51cto.com/8808968/1973769