1.http://ueditor.baidu.com/website/download.html下载,有几种版本选择,用了jsp版本
2.放到项目的static目录下,并引入import './../../../static/utf8-jsp/ueditor.config' 和
import './../../../static/utf8-jsp/ueditor.all'
3.html中加上<div id="editor" class="editor" type="text/plain"></div>
4.js部分在mounted中加上
this.
ue =
UE.
getEditor(
'editor',{
BaseUrl:
'',
UEDITOR_HOME_URL:
'./../../../static/utf8-jsp/', //引入的ueditor包的路径
toolbars: [], //可根据自己的需要添加不同的工具
});
5.注释掉ueditor.config.js文件中的这一行( // 服务器统一请求接口路径
// , serverUrl: URL + "jsp/controller.jsp")