富文本编辑器layedit,调用setContent方法会报错

调用setContent方法后,文本可以显示出来,但会报Uncaught ReferenceError: layedit is not defined(看源码是该方法最后调用了layedit.sync(index))函数

 

须要把layedit.js里的
setContent 函数的this

layedit.sync(index));

改为源码

this.sync(index));
相关文章
相关标签/搜索