调用setContent方法后,文本可以显示出来,但会报Uncaught ReferenceError: layedit is not defined(看源码是该方法最后调用了layedit.sync(index))函数
须要把layedit.js里的setContent 函数的this
layedit.sync(index));
改为源码
this.sync(index));