版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Bepthslowly/article/details/83342583
1、官方文档
2、定制图标:修改 ueditor.config.js 里面的 toolbars
, toolbars: [[
'fullscreen', '|', 'undo', 'redo', '|',
'bold', 'italic', 'underline', '|', 'forecolor', 'insertorderedlist', 'insertunorderedlist', 'cleardoc', '|', 'lineheight', '|', 'paragraph', 'fontfamily', 'fontsize', '|',
'indent', '|',
'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|',
'imagenone', 'imageleft', 'imageright', 'imagecenter', '|',
'simpleupload', '|',
'preview', 'searchreplace', 'help'
]]
3、修改上传路径config.json>imagePathFormat
4、自定义
var ue = UE.getEditor('container', {
autoHeightEnabled: true,
toolbars: [[
'fullscreen', '|', 'undo', 'redo', '|',
'bold', 'italic', 'underline', '|', 'forecolor', 'insertorderedlist', 'insertunorderedlist', 'cleardoc', '|', 'lineheight', '|', 'paragraph', 'fontfamily', 'fontsize', '|',
'indent', '|',
'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|',
'imagenone', 'imageleft', 'imageright', 'imagecenter', '|',
'simpleupload', '|',
'preview', 'searchreplace', 'help'
]]
});