Ueditor/重置编辑器
来自站长百科
步骤一:html格式
<div class="warp">
<div class="head" id="head">
<input type="button" name="simple" class="act" onclick="simple()" value="重置编辑器内部参数">
</div>
<div class="content" id="simple" >
</div>
</div>
步骤二:创建编辑器
var editor = new baidu.editor.ui.Editor({
id:'simple',
minFrameHeight: 180,
iframeCssUrl :'../../themes/default/iframe.css',
UEDITOR_HOME_URL:'../../',
toolbars:[['Bold','Italic','Underline','StrikeThrough','Superscript','Subscript']]
});
editor.render();
function simple(){
editor.options.initialContent = "编辑器的内部变量都已被清空";
editor.reset();
}
参考来源[ ]
Ueditor使用手册导航 | ||||||
|---|---|---|---|---|---|---|
|
|