FCKeditor 嵌入ASP页面配置和用法
1. 将FCK 的文件夹复制到项目的根目录下。(如果觉得文件太大可以删除掉_sample,_source).
2. 添加引用FredCK.FCKeditorV2.dll 文件。
3. 在web.config中<appSettings/>节点里配置:
<appSettings>
<add key="FCKeditor:BasePath" value="~/fckeditor/"/>
<add key="FCKeditor:UserFilesPath" value="~/Files/" /> // 存放图片的文件夹
</appSettings>
4. 在项目中创建一个存放图片的文件夹和web.config中配置的文件夹名字一样
5. 在页面工具箱中常规中右键选择项---浏览---添加dll文件
6. 常规中新添加的控件托人页面就可以使用。
以上就是页面中要做的,下面是后台取值和赋值:
stirng content = fckContent.Value; //取值
this.fckContent.Value ="hello"; // 赋值
posted on 2010-12-14 09:16 dream梦false 阅读(483) 评论(0) 编辑 收藏 举报