###我用的框架是angular2
1.使用npm install wangEditor
还得在首页
在官网有可以下载 我用的wangEditor是版本号3的
2.在html页面中使用
欢迎使用 wangEditor 富文本编辑器
3.在ts里面做配置信息
我的因为是angular2使用这个wangEditor还要提前申明
declare let wangEditor:any;
var E = wangEditor;
var editor = new E('#editor');
editor.customConfig.uploadImgServer = 'https://tdi-mmes.com/cmsComm/fileUpload';// 这是上传服务的url地址
editor.customConfig.uploadFileName = 'file';//添加一个file的属性
editor.customConfig.withCredentials = true//可以携带cookie信息
// 颜色
editor.customConfig.colors = [
'#000000',
'#eeece0',
'#1c487f',
'#4d80bf',
'#c21e4d',
'#8baa4a',
'#7b5ba1',
'#46acc8',
'#f9963b',</