修改ueditor.config.js里面的toolbars,以下是默认的toolbars代码toolbars:[
['fullscreen', 'source', '|', 'undo', 'redo', '|',
'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript', 'removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc', '|',
'rowspacingtop', 'rowspacingbottom', 'lineheight', '|',
'customstyle', 'paragraph', 'fontfamily', 'fontsize', '|',
'directionalityltr', 'directionalityrtl', 'indent', '|',
'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|', 'touppercase', 'tolowercase', '|',
'link', 'unlink', 'anchor', '|', 'imagenone', 'imageleft', 'imageright', 'imagecenter', '|',
'insertimage', 'emotion', 'scrawl', 'insertvideo', 'music', 'attachment', 'map', 'gmap', 'insertframe','insertcode', 'webapp', 'pagebreak', 'template', 'background', '|',
'horizontal', 'date', 'time', 'spechars', 'snapscreen', 'wordimage', '|',
'inserttable', 'deletetable', 'insertparagraphbeforetable', 'insertrow', 'deleterow', 'insertcol', 'deletecol', 'mergecells', 'mergeright', 'mergedown', 'splittocells', 'splittorows', 'splittocols', 'charts', '|',
'print', 'preview', 'searchreplace', 'help', 'drafts']
]
下面是网上收藏的toolbars中文参考表,方便修改。1 , toolbars: [[
2 ‘link‘, //超链接
3 ‘unlink‘, //取消链接
4 ‘|‘,
5 ‘forecolor‘, //字体颜色
6 ‘backcolor‘, //背景色
7 ‘fontfamily‘, //字体
8 ‘fontsize‘, //字号
9 ‘|‘,
10 ‘bold‘, //加粗
11 ‘italic‘, //斜体
12 ‘underline‘, //下划线
13 ‘strikethrough‘, //删除线
14 ‘|‘,
15 ‘formatmatch‘, //格式刷
16 ‘removeformat‘, //清除格式
17 ‘|‘,
18 ‘insertorderedlist‘, //有序列表
19 ‘insertunorderedlist‘, //无序列表
20 ‘|‘,
21 ‘inserttable‘, //插入表格
22 ‘paragraph‘, //段落格式
23 ‘simpleupload‘, //单图上传
24 ‘imagecenter‘, //居中
25 ‘attachment‘, //附件
26
27 ‘|‘,
28 ‘justifyleft‘, //居左对齐
29 ‘justifycenter‘, //居中对齐
30 ‘horizontal‘, //分隔线
31 ‘|‘,
32 ‘blockquote‘, //引用
33 ‘insertcode‘, //代码语言
34
35 ‘|‘,
36 ‘source‘, //源代码
37 ‘preview‘, //预览
38 ‘fullscreen‘, //全屏
39 ]]
不需要的工具按钮删掉就可以了