CKEditor3.6.2和CKFinder2.2.1 for ASP.NET部署设置完美解决方案(5)

来源:互联网 发布:mate9下载软件应用 编辑:程序博客网 时间:2024/06/15 03:33

8. 使用方法

Admin/Text.aspx测试文件内容如下:

<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" tagprefix="CKeditor" %><!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 id="Head1" runat="server">    <title>CKEditor And CKFinder Test</title></head><body>    <form id="form1" runat="server" enctype="multipart/form-data" method="POST">    <asp:ScriptManager ID="scriptManager" runat="server" EnablePageMethods="true" />    <div>         <CKEditor:CKEditorControl ID="txtContent" runat="server" Height="500px" BasePath="./ckeditor"></CKEditor:CKEditorControl>    </div>    </form></body></html>
注意,BasePath很重要,这里Text.aspx与CKEditor文件夹在同一目录下。

9. 小结

快试一下吧,有问题多交流,谢谢。


原创粉丝点击