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格式'''
'''步骤一:[[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的最新版本

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使用手册导航

针对普通使用者

部署和体验|自定义配置|自定义工具栏|表单提交|重置编辑器|多编辑器|自定义编辑器|文本域渲染|前后端数据整合

针对二次开发者

整体架构|插件机制|自定义插件开发

若干专题教程

相关问题