자료/ASP.NET

FCKeditor.Net ASP.NET 2.0 에 적용하기

네오블루 2007. 12. 29. 00:06
 
1. 아래의 항목을 다운 받는다.

FCKeditor 2.4.1 소스

http://sourceforge.net/project/showfiles.php?group_id=75348&package_id=75845

FCKeditor.NET 2.2  소스

http://sourceforge.net/project/showfiles.php?group_id=75348&package_id=137125

2. WebForm1.aspx 생성 후 bold체 부분을 설정한다.

<%@ Page Language="C#" CodeBehind="WebForm2.aspx.cs" Inherits="WebApplication2.WebForm2"AutoEventWireup="false" ValidateRequest="false"%>

3. UserFiles 폴더 생성한다

4. Web.Config 수정 

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

5. FCKeditor.Net_2.2\bin\Release 에 있는 FredCK.FCKeditorV2.dll 참조한다음,
툴바에서 폼에 끌어다 놓는다.


6. 값을 받을때는 Request.Form["FCKeditor1"] 또는 this.FCKeditor1.Value 로 받는다

1. 엔터치면 BR 태그 먹게 하기

fckconfig.js 파일내에
FCKConfig.EnterMode = 'br' ;   수정합니다.
1. 툴바 수정 설명
http://wiki.fckeditor.net/Developer's_Guide/Configuration/Toolbar