FCKeditor 그리고 FCKeditor.Net Latest version을 내려받습니다.
필요파일
FCKeditor_2.6.3.zip 압축을 해제하고 fckeditor 폴더 내용 전체를 Site의 적당한 위치에 업로드 합니다.
fckeditor_samples 은 없어도 문제없습니다.
사이트의 bin 폴더에 적당한 버전의 FredCK.FCKeditorV2.dll 파일을 업로드 합니다.
페이지 파일(.aspx)에서 아래의 코드를 추가합니다.
<%@ Register Assembly=”FredCK.FCKeditorV2″ Namespace=”FredCK.FCKeditorV2″ TagPrefix=”FCKeditorV2″ %>
에디터가 들어갈 부분에는 아래의 코드를 추가합니다.
<FCKeditorV2:FCKeditor ID=”FCKeditor1″ runat=”server”></FCKeditorV2:FCKeditor>
에디터가 로드되는지 확인합니다.
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<%@ Page Language=”C#” %>
<%@ Register Assembly=”FredCK.FCKeditorV2″
Namespace=”FredCK.FCKeditorV2″
TagPrefix=”FCKeditorV2″ %>
<html xmlns=”http://www.w3.org/1999/xhtml” >
<head runat=”server”>
<title>Sample Page</title>
</head>
<body>
<form id=”form1″ runat=”server”>
<div>
<FCKeditorV2:FCKeditor ID=”FCKeditor1″ runat=”server”></FCKeditorV2:FCKeditor>
</div>
<input type=”submit” value=”Submit” runat=”server” />
</form>
</body>
</html>