Ueditor/重置编辑器:修订间差异
来自站长百科
(以内容“{{Ueditor导航}} '''步骤一:html格式''' <pre><nowiki> <div class="warp"> <div class="head" id="head"> <input type="button" name="simple" class="ac...”创建新页面) |
无编辑摘要 |
||
第1行: | 第1行: | ||
{{Ueditor导航}} | {{Ueditor导航}} | ||
''' | '''步骤一:[[html]]格式''' | ||
<pre><nowiki> | <pre><nowiki> | ||
<div class="warp"> | <div class="warp"> | ||
第12行: | 第12行: | ||
</nowiki></pre> | </nowiki></pre> | ||
''' | '''步骤二:创建[[编辑器]]''' | ||
<pre><nowiki> | <pre><nowiki> | ||
var editor = new baidu.editor.ui.Editor({ | var editor = new baidu.editor.ui.Editor({ |
2011年12月27日 (二) 17:09的最新版本
步骤一: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使用手册导航 | ||||||
---|---|---|---|---|---|---|
|