wangEditor3 使用记录

editor.customConfig.onchange = html => {
    this.editorContent = html;
};
editor.create();
  • 回显数据到编辑框中可以在编辑框 create 后设置值:
editor.create();
if (this.threadSave.content){
     this.editorContent = this.threadSave.content;
     editor.txt.html(this.threadSave.content);
}
发布了406 篇原创文章 · 获赞 127 · 访问量 81万+

猜你喜欢

转载自blog.csdn.net/Dongguabai/article/details/100586811