我这几天调fckeditor调崩溃了,一直出现"Error Loading "/我的论坛/fckeditor/fckstyles.xml" 
以下是我在网上查了几种解决办法,但都没有解决我的问题。
1:http://wuduanpiao.bokee.com/6607087.html
1.修改服务器设置;
2.将fckstyles.xml用其他文件格式代替,比如ASP。Response.Charset="UTF-8"
Response.ContentType = "text/xml"
str=str&"<?xml version=""1.0"" encoding=""utf-8"" ?>"&vbCrLf
str=str&"<Styles>"&vbCrLf
........
Response.Write(str)同时修改 
FCKConfig.StylesXmlPath=FCKConfig.EditorPath + 'fckstyles.xml' ; 

FCKConfig.StylesXmlPath=FCKConfig.EditorPath + 'fckstyles.asp' ; 2:http://blog.csdn.net/pharaohsprince/archive/2007/08/10/1736397.aspx
有人分析了产生问题的原因是因为fckstyles.xml没有被ie用contentType:text/xml方式下载,所以导致了不能解析,他是在php底下做 
开发的,他直接把fckstyles.xml的第一行改成 
<?php header('Content-type: text/xml');?><?php echo "<?xml version=\"1.0\" encoding=\"utf-8\" ?>"; ?>3: 有人使用的java
用urlrewrite.xml做一个地址转换,同时在转换的过程中设置一下contentType 
<rule> 
<from>^/fckeditor/xml/([_.0-9a-zA-Z]+).xml$</from> 
<to>/fckeditor/$1</to> 
<set type="content-type">text/xml</set> 
</rule> 
同时修改 
FCKConfig.StylesXmlPath=FCKConfig.EditorPath + 'fckstyles.xml' ; 
为 
FCKConfig.StylesXmlPath=FCKConfig.EditorPath + 'xml/fckstyles.xml.xml' ;
4:有人说是路径不对,要在Web.config中加入
<appSettings>
    <add key="FCKeditor:BasePath" value="~/FCKeditor/"/>
</appSettings>5:有人说要在IIS中的“HTTP头”中添加文件类型:
扩展名.xml,内容类型:text/xml.6:http://gocom.primeton.com/blog4323_1394.htm
有人发现出现错误提示,但不影响使用效果,就把错误屏蔽。
解决方法:
1、打开editoreditorjsfckeditorcode_ie.js文件
2、从中找到var FCKXml=function(),然后再往后看,会看到如下信息:
if (window.confirm("Error loading ""+A+"" Do you want to see more info?")) alert("URL requested: ""+A+"" Server response: Status: "+B.status+" Response text: "+B.responseText);
3、直接把这段代码删除即可。
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
以上方法我的尝试结果:
1方法:str=str&"<?xml version=""1.0"" encoding=""utf-8"" ?>"&vbCrLf
   str=str&"<Styles>"&vbCrLf
我使用的是C#这段代码,不能理解,没办法转换成C#语法。 失败!
2方法:因为使用的是PHP,我没接触过,依葫芦画瓢,改了一下。  失败!
3方法:java的方法不懂。没法尝试!
4方法:按方法加入代码,问题依旧!
5方法:添加后,问题依旧!
6方法:是我接近崩溃以后选择的方法。其中出现错误后不影响使用,经检验,只适合Fckeditor2.2的版本(2.0没试,估计也可以)。最新的2.5和2.6版本,出错后无法使用。
2.2版本中的提示错误文件名有出入为fckeditorcode_gecko_2.js和ckeditorcode_ie_2.js
我在这两个文件中都找到了显示错误信息。但无法屏蔽,我把两个文件的错误信息都删除,仍然有错误提示。彻底崩溃!!!!!在这里没有办法,请教各位高手,类似fckeditor功能的软件有没其他的。或者有人能帮提出有效的方法,小弟感激不尽!

解决方案 »

  1.   

    我想要CSDN的文本编辑器,谁有???
      

  2.   

    你再下最新板的看看!个人感觉用来用去还是fckeditor用着爽
      

  3.   

    1方法:str=str&" <?xml version=""1.0"" encoding=""utf-8"" ?>"&vbCrLf 
       str=str&" <Styles>"&vbCrLf 
    c#中用
     XmlDeclaration xn = xmlDoc.CreateXmlDeclaration("1.0","gb2312",null);
                xmlDoc.AppendChild(xn);可以做到的!!给xml文件写个头!!
      

  4.   

    给XML写个头,应该怎么写?
    我在网页的.cs代码中加入了
    Response.Charset = "UTF-8";
            Response.ContentType = "text/xml";
            XmlDocument xmlDoc = new XmlDocument();
            XmlDeclaration xn = xmlDoc.CreateXmlDeclaration("1.0", "gb2312", null);
            xmlDoc.AppendChild(xn);
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~··
    但运行结果,网页变成XML格式:
      <!DOCTYPE html (View Source for full doctype...)> 
    - <html xmlns="http://www.w3.org/1999/xhtml">
    - <head>
      <meta http-equiv="Content-Type" content="text/xml" /> 
      <title>无标题页</title> 
      </head>
    - <body>
    - <form name="form1" method="post" action="AddEditPost.aspx" id="form1" enctype="application/x-www-form-urlencoded">
    - <div>
      <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKLTYzOTEyMjQ2N2RkndaxoC79MwbP+N705KtHvXX0lY4=" /> 
      </div>
    - <div>
        
      <br clear="none" /> 
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    你说的给XML加个头。应该怎么加?我对XML不太了解。
    请再详细一点好吗?谢谢。
    我在这里把 fckstyles.xml代码贴出来。希望有帮助!
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    <?xml version="1.0" encoding="utf-8" ?>
    <!--
     * FCKeditor - The text editor for Internet - http://www.fckeditor.net
     * Copyright (C) 2003-2008 Frederico Caldeira Knabben
     *
     * == BEGIN LICENSE ==
     *
     * Licensed under the terms of any of the following licenses at your
     * choice:
     *
     *  - GNU General Public License Version 2 or later (the "GPL")
     *    http://www.gnu.org/licenses/gpl.html
     *
     *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
     *    http://www.gnu.org/licenses/lgpl.html
     *
     *  - Mozilla Public License Version 1.1 or later (the "MPL")
     *    http://www.mozilla.org/MPL/MPL-1.1.html
     *
     * == END LICENSE ==
     *
     * This is the sample style definitions file. It makes the styles combo
     * completely customizable.
     *
     * See FCKConfig.StylesXmlPath in the configuration file.
    -->
    <Styles> <!-- Block Styles --> <!--
    # These styles are already available in the "Format" combo, so they are not
    # needed here by default. <Style name="Heading 1" element="h1" />
    <Style name="Heading 2" element="h2" />
    <Style name="Heading 3" element="h3" />
    <Style name="Heading 4" element="h4" />
    <Style name="Heading 5" element="h5" />
    <Style name="Heading 6" element="h6" />
    <Style name="Paragraph" element="p" />
    <Style name="Document Block" element="div" />
    <Style name="Preformatted Text" element="pre" />
    <Style name="Address" element="address" />
    --> <!-- Inline Styles --> <!--
    # These are core styles available as toolbar buttons. <Style name="Bold" element="b">
    <Override element="strong" />
    </Style>
    <Style name="Italic" element="i">
    <Override element="em" />
    </Style>
    <Style name="Underline" element="u" />
    <Style name="Strikethrough" element="strike" />
    <Style name="Subscript" element="sub" />
    <Style name="Superscript" element="sup" />
    --> <Style name="Marker: Yellow" element="span">
    <Style name="background-color" value="Yellow" />
    </Style>
    <Style name="Marker: Green" element="span">
    <Style name="background-color" value="Lime" />
    </Style> <Style name="Big" element="big" />
    <Style name="Small" element="small" />
    <Style name="Typewriter" element="tt" /> <Style name="Computer Code" element="code" />
    <Style name="Keyboard Phrase" element="kbd" />
    <Style name="Sample Text" element="samp" />
    <Style name="Variable" element="var" /> <Style name="Deleted Text" element="del" />
    <Style name="Inserted Text" element="ins" /> <Style name="Cited Work" element="cite" />
    <Style name="Inline Quotation" element="q" /> <Style name="Language: RTL" element="span">
    <Attribute name="dir" value="rtl" />
    </Style>
    <Style name="Language: LTR" element="span">
    <Attribute name="dir" value="ltr" />
    </Style>
    <Style name="Language: RTL Strong" element="bdo">
    <Attribute name="dir" value="rtl" />
    </Style>
    <Style name="Language: LTR Strong" element="bdo">
    <Attribute name="dir" value="ltr" />
    </Style> <!-- Object Styles --> <Style name="Image on Left" element="img">
    <Attribute name="style" value="padding: 5px; margin-right: 5px" />
    <Attribute name="border" value="2" />
    <Attribute name="align" value="left" />
    </Style>
    <Style name="Image on Right" element="img">
    <Attribute name="style" value="padding: 5px; margin-left: 5px" />
    <Attribute name="border" value="2" />
    <Attribute name="align" value="right" />
    </Style>
    </Styles>
      

  5.   

    freeTextBox,eWebEditor...这两个控件也不错的,功能也还可以。
      

  6.   

    fckeditor老感觉加载太慢。。功能去掉很多还是很慢。不知道什么原因~
      

  7.   

    这种很多。CSDN的这个自己写一个就是了。UBB代码稍微简单一些。
      

  8.   

    呵呵,我还是个新手,自己写一个在线文本编辑框,还是有不小的难度。
    不过刚刚下载了freeTextBox,eWebEditor,自己找到一个CuteEditor.
    功能都很强大,而且没有出现问题。
    谢谢大家。
      

  9.   

    freeTextBox,这个以前用过,很不错的.不过现在也用的FCK了
      

  10.   

    还是Fckeditor强大,分页,预览上传
    freetextbox这个没分页,没预览,功能还是不错的