kindeditor赋值的有哪些方法
在 KindEditor 中,可以通过以下方法给编辑器赋值:
html()
方法赋值:var editor = KindEditor.create('#editor');
editor.html('要赋值的内容
');
text()
方法赋值(纯文本):var editor = KindEditor.create('#editor');
editor.text('要赋值的内容');
需要注意的是,赋值操作应在编辑器初始化完成落后行,否则可能会致使赋值失败。
TOP