网上搜索了一下大概就两种办法:
1,var oEditor = FCKeditorAPI.GetInstance("FCKeditor1");
var oDOM =oEditor.EditorDocument;
alert(oDOM.body.innerText);2,var oEditor = FCKeditorAPI.GetInstance('FCKeditor1');
var content = oEditor.GetXHTML(true); 
alert(content);以上两种办法都不能获取内容。错误提示:EditorDocument为宽或不为对像

解决方案 »

  1.   

    fckeditor1.Value
    var oEditor=FCKeditorAPI.GetInstance('content');
    var content=oEditor.GetXHTML(true);
    // 获取编辑器中HTML内容
    function getEditorHTMLContents(EditorName) {
        var oEditor = FCKeditorAPI.GetInstance(EditorName);
        return(oEditor.GetXHTML(true));
    }
    // 获取编辑器中文字内容
    function getEditorTextContents(EditorName) {
        var oEditor = FCKeditorAPI.GetInstance(EditorName);
        return(oEditor.EditorDocument.body.innerText);
    }
    EditorDocument是fckeditor 里面自定义的.
      

  2.   

    都说了,EditorDocument未定义或不是对像
      

  3.   

    不可能。我都测试过的你看看网页的源代码 FCKeditor1 的ID变化了吗?或者
    GetInstance(<%=FCKeditor1.ClientID%>");
      

  4.   

    我的问题是:错误提示:EditorDocument为宽或不为对像
      

  5.   

    楼主试试这个方法
    var oEditor = FCKeditorAPI.GetInstance("logContent");
      oEditor.GetXHTML();
      

  6.   

    fckeditor1.Value
    var oEditor=FCKeditorAPI.GetInstance('content');
    var content=oEditor.GetXHTML(true);
    // 获取编辑器中HTML内容
    function getEditorHTMLContents(EditorName) {
      var oEditor = FCKeditorAPI.GetInstance(EditorName);
      return(oEditor.GetXHTML(true));
    }
    // 获取编辑器中文字内容
    function getEditorTextContents(EditorName) {
      var oEditor = FCKeditorAPI.GetInstance(EditorName);
      return(oEditor.EditorDocument.body.innerText);
    }
    EditorDocument是fckeditor 里面自定义的.
      

  7.   

    不知道LZ到底想问什么问题, 如果是取值,直接.value就可以取出来啊