background image

FCKeditor.NET.zip 是 ASP.NET 调用的 DLL 在里面。

    machine.config.comments 中,该文件通

 

常位于
    \Windows\Microsoft.Net\Framework\v2.x\Config 中
-->
<configuration>
<appSettings>

    <add key="FCKeditor:BasePath" value="~/fckeditor/"/>

    <add key="FCKeditor:UserFilesPath" value="/Files/" />

</appSettings>

<connectionStrings/>
<system.web>

说明:BasePath 是 fckeditor 所在路径,fckeditor 由于我们直接放网站目录下这样
写就可以,如果您的网站多放几层适当调整即可。
            UserFilesPath 是所有上传的文件的所在目录。

为什么要设置成/Files 这样

而不是~/Files

因为 FCKeditor 使用这个值来返回你上传后的文件的相对路径到客户端。否则的话客户访问的

时候就会取客户的机器目录而不是 http 形式的目录。

建议:Files 要单独做 wwwroot 目录下的一个站点比较好,和我们的站点 FCKEditor 平行。不要把它放 FCKEditor 里,
为什么呢?因为 Files 是要让客户有写的权限的,如果放 FCKEditor 下很危险。

<body>

    <form id="form1" runat="server">
    <div>
        <fckeditorv2:fckeditor id="FCKeditor1" runat="server" 
DefaultLanguage="

zh-cn

" Height="400px" Width="660px" 

></fckeditorv2:fckeditor>
    
    </div>
    </form>
</body>
</html>

怎么样获取结果呢?

FCKeditor1.Value

就是。

12.还有个类似的控件 FreeTextBox 也很好用,有兴趣可以自己网上找找,比这
个好用多了不过感觉没这个好,而且它的最新版似乎收费了。

FCKeditor 精简版的制作方法(附)。

 进入 FCKeditor

文件夹,把所有 _”开头的文件和文件夹删掉,这些都是一些

范例,只保留 editor 文件夹 、
fckconfig.js fckeditor.js fckstyles.xml fcktemplates.xml 就可以了;