使用wangEditor富文本编辑器遇到的问题,wangEditor编辑器轻巧,方便,但是第一次用,官方文档也只说了大概,结合vue使用。
使用上传图片功能最好实现自定义上传,方便接口的定义及图片维护等,但一定要注意this的作用域,我就是因为作用域浪费了几个小时,
在最外层写 let that = this即可;如何修改菜单栏图标大小与修改提示title需要修改其原码,找到wangEditor.js,然后找到进行修改;
将其this.editor.config.uploadImgShowBase64 = true;其余跟着文档说明就可以了,这些是一些小坑。