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

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

WBOY
Release: 2016-06-06 20:38:28
Original
1558 people have browsed it

利用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>
Copy after login
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template