Home >Backend Development >PHP Tutorial >百度编辑器Ueditor如何初始化内容

百度编辑器Ueditor如何初始化内容

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-06 20:38:281599browse

利用js,添加多个富文本编辑器,当添加第二个的时候,如何把上一个编辑的内容清空,初始化富文本编辑器,使其可以重新录入新内容

回复内容:

利用js,添加多个富文本编辑器,当添加第二个的时候,如何把上一个编辑的内容清空,初始化富文本编辑器,使其可以重新录入新内容

http://ueditor.baidu.com/website/onlinedemo.html 建议你看看

http://ueditor.baidu.com/doc/#UE.Editor:setContent(String)

<code>function clearmyedit(){
    UE.getEditor('myedit').setContent('', false);
}
clearmyedit();
</code>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn