zoukankan      html  css  js  c++  java
  • FckEditor javascript操作


    var oEditor = FCKeditorAPI.GetInstance("spBlogText");//获取当前页面 FCK 编辑器实例
    oEditor.SetHTML("http://www.mzwu.com/");//设置编辑器内容
    oEditor.InsertHtml("木子屋");//添加内容到编辑器//在光标处添加内容
    alert(oEditor.GetXHTML(true)); //获取编辑器内容
    alert(oEditor.EditorDocument.body.innerText);//纯文本内容(IE Only)


     <script language="javascript" type="text/javascript" >
                function ReplaceAllTextareas() {
                    // replace all of the textareas
                    var allTextAreas = document.getElementsByTagName("textarea");
                    for (var i = 0; i < allTextAreas.length; i++) {
                        var oFCKeditor = new FCKeditor(allTextAreas[i].name);
                        oFCKeditor.UserFilesPath = "~/Upload/";
                        oFCKeditor.BasePath = "/hhc_admin/HHC_Editer/";
                        oFCKeditor.ReplaceTextarea();
                    }
                }
        </script>

  • 相关阅读:
    Node post请求 通常配合ajax
    Node json
    Node params和query的Get请求传参
    Node express
    java NIO FileChannel
    IO 输出 PrintStream和PrintWriter
    ByteBuffer
    分析dump
    oracle free space
    SHELL 在指定行的前/后插入指定内容
  • 原文地址:https://www.cnblogs.com/wenming205/p/1513422.html
Copyright © 2011-2022 走看看