FckEditor2.6.4在VS2005中的使用过程
1.下載FckEditor_2.6.4.zip包和FckEditor.NET_2.6.3.zip包(怎么.net的包沒有找到2.6.4呢)
2.把兩個包解壓。FckEditor_2.6.4.zip包解壓縮的內容全部放到要使用的網站目錄下面去。
3..NET包解壓縮后找到“xxx\fckeditor\net\bin\Release\2.0\”目錄下的“FredCK.FCKeditorV2.dll”文件,復制該文件到網站的Bin目錄下。
4.將該文件直接拖放到VS的工具箱中,會多出一個FckEditor的控件。
5.在引用該控件的網頁代碼頭部有這句話“<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
”
6.web.config文件中配置如下:
?<appSettings>
??? <add key="FCKeditor:BasePath" value="~/fckeditor/"/>
??? <add key="FCKeditor:UserFilesPath" value="/Files/" />
? </appSettings>
UserFilesPath的值是用戶上傳文件存放的目錄,需要對服務器該目錄有寫入權限。
7.修改fckconfig.js文件
var _FileBrowserLanguage?= 'aspx' ;?// asp | aspx | cfm | lasso | perl | php | py
var _QuickUploadLanguage?= 'aspx' ;?// asp | aspx | cfm | lasso | php
8.直接把控件拖到網頁中要使用的地方。
<%@?Page?Language="C#"?AutoEventWireup="true"??CodeFile="Default.aspx.cs"?Inherits="_Default"?%><%@?Register?Assembly="FredCK.FCKeditorV2"?Namespace="FredCK.FCKeditorV2"?TagPrefix="FCKeditorV2"?%>
<!DOCTYPE?html?PUBLIC?"-//W3C//DTD?XHTML?1.0?Transitional//EN"?"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html?xmlns="http://www.w3.org/1999/xhtml"?>
<head?runat="server">
????<title>無標題頁</title>
</head>
<body>
????<form?id="form1"?runat="server">
????<div>
?????<FCKeditorV2:FCKeditor?ID="FCKeditor1"?runat="server"></FCKeditorV2:FCKeditor>
????</div>
????</form>
</body>
</html>
?
9.效果圖
轉載于:https://www.cnblogs.com/Jinspet/archive/2009/02/05/1384797.html
總結
以上是生活随笔為你收集整理的FckEditor2.6.4在VS2005中的使用过程的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: POJ 2745 显示器 解题报告
- 下一篇: 虚拟磁盘分析