ckeditor3 在Asp.net MVC2.0环境中的配置
1.下載ckeditor3.2.1的壓縮包;
2.解壓到Mvc項目的Content中,如下圖
3.預覽_samples文件夾中的index.html網頁,如果能預覽說明安裝成功(另外該文件夾下面的例子都比較經典)。
4.打開網頁,把ckeditor目錄下的ckeditor.js拖到網頁的Head的節,結果如下所示
?
<head runat="server">
??? <title>About</title>
??? <script src="http://www.cnblogs.com/Content/ckeditor/ckeditor.js" type="text/javascript"></script>
</head>
?
5.在Body節的<form>節里面插入如下代碼,注意紅色部分
?<asp:TextBox ID="editor1" runat="server" TextMode="MultiLine" Text="asdfasdf" class="ckeditor"></asp:TextBox>
??????? <input type="submit" value="提交" />
??????? <p>
??????? </p>
??????? <script type="text/javascript">
??????????? CKEDITOR.replace('editor1'); ;
??????? </script>
6.運行效果如下
其他的配置給其他地方一樣。
?
?
轉載于:https://www.cnblogs.com/catzhou/articles/1722626.html
總結
以上是生活随笔為你收集整理的ckeditor3 在Asp.net MVC2.0环境中的配置的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: fatal error C1083: C
- 下一篇: 下一代Android或官方支持“App2