一,ueditor的使用过程:
准备工具:将下载的ueditor文件考入项目中,
在jsp文件中引入ueditor.all.js,ueditor.config.js,ueditor.css,zh-cn.js文件。
二,ueditor添加自定义按钮。
添加一个“add”功能按钮到ueditor上。
第一步:找到:ueditor.config.js文件中的toobars处,添加'add',全小写
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', '|',