1
A
回答
0
答案将是
scrpt type = "text/javascript" src = "ckeditor/ckeditor.js"....close script
//ckeditor is the folder that you have created in your application.
script type="text/javascript"
window.onload = function()
{
debugger
vartxtDemo = document.getElementByID('<%txtDemo.ClientID%');
CKEDITOR.replace(txtDemo);
}...//close the script
,但在此之前,在您的应用程序中创建ckeditor文件夹并粘贴您已下载的内容,
2
在web.config
部分,你可以写:
<add tagPrefix="FredCK" namespace="FredCK.CKEditor" assembly="FredCK.CKEditor, Culture=neutral, PublicKeyToken=9ef91de3e191403a" />
0
没有为CKEditor的一个不错的asp.net包装控件:http://cksource.com/forums/viewtopic.php?f=11&t=15882
1
其实,最好不要使用ASP.NET CKEditor控件,而是直接使用CKEditor。控制已过时(版本3.6而不是4.1)并且不是必需的。基本上,使用多行文本框,并使其成为CKEditor类。不要忘了给ckEditor.js添加到头部分:
的web.config
<configuration>
<system.web>
<httpRuntime requestValidationMode="2.0"/>
<compilation debug="true" targetFramework="4.0" />
</system.web>
</configuration>
Test.aspx的
<!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>ckeditor test page</title>
<script src="ckeditor/ckeditor.js" type="text/javascript"></script>
</head>
<body>
<form id="form1" runat="server">
<p>
<asp:TextBox class="ckeditor" ID="CkeditorTextBox" runat="server" TextMode="MultiLine" Columns="80" Rows="10">
Hi
</asp:TextBox>
</p>
<p>
<asp:Button ID="SubmitButton" runat="server" onclick="SubmitButton_Click" Text="Submit" />
</p>
</form>
</body>
</html>
Test.aspx文件。 cs
using System;
public partial class Test : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void SubmitButton_Click(object sender, EventArgs e) {
string CkEditorText = CkeditorTextBox.Text;
//add some processing here
}
}
相关问题
- 1. 用于ASP.NET的CKEditor dll
- 2. 在jQuery对话框中的asp.net mvc ckeditor
- 3. 在ASP.NET MVC中使用CKEditor的问题
- 4. ASP.NET MVC和CKEditor - 不验证
- 5. 将CKEditor集成到ASP.NET中
- 6. ASP.NET MVC不显示ckeditor
- 7. 如何在asp.net中按类使用CKEditor?
- 8. 在asp.net核心mvc集成ckeditor
- 9. 在ASP.NET MVC 2中集成CKEditor?
- 10. 在ASP.NET MVC中从CKEditor提交HTML
- 11. 如何在asp.net中集成ckfinder和ckeditor?
- 12. NG2-CKEditor的 “CKEDITOR”
- 13. 可能CKEditor减慢我的ASP.NET页面?
- 14. 的CKEditor在IE11
- 15. 在CKEDITOR
- 16. 如何在ASP.Net的CKEditor中上传图片的URL
- 17. CKEDITOR只删除asp.net标签问题
- 18. 如何将CKEditor整合到Asp.net MVC
- 19. createBookmarks2在CKEditor的insertElement
- 20. CKEditor的:在页面
- 21. 如何在asp.net回发时获取CKEDITOR的内容
- 22. 在asp.net中启用CKEditor的图片上传
- 23. 如何在asp.net中获取ckeditor文本字段的值
- 24. OnTextChanged事件不在ASP.NET中的CKEditor控件上触发
- 25. CKEDITOR - 在CKEDITOR上安装Coops插件
- 26. CKEDITOR,在CKEDITOR之外调用FullScreen动作
- 27. CKEDITOR在VUE JS
- 28. CKEditor:先使用CKEditor
- 29. 如何在一个ASP.net项目中使用CKEditor 4.5.7
- 30. 使用Ckeditor或tiny mce在asp.net中用html上传图像