试图将CKEditor集成到我的asp.net应用程序中..。我下载了CKEditor 3.x和CKEditor for ASP.NET控件,并将CKEditor引用添加到站点--我也将它添加到应用程序中
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CKEditor.aspx.cs" Inherits="CKEditor" %>
<%@ 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 runat="server">
<title>CKEditor</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<CKEditor:CKEditorControl ID="CKEditor1" BasePath="/ckeditor/" runat="server">
</CKEditor:CKEditorControl>
</div>
</form>但我得到了这个错误。
CS0426: The type name 'NET' does not exist in the type 'CKEditor'
<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>我已经搜索了所有的互联网解决方案,但似乎我是唯一一个拥有这样的problem...please可以帮助。
发布于 2015-10-31 10:53:58
向您的网站添加对CKEditor for ASP.NET控件的引用。
在Visual中,使用Add命令,并从解压缩的bin\Release\CKEditor.NET.dll安装包中浏览到ASP.NET文件。还可以手动将DLL文件复制到应用程序的bin文件夹。
参考文献:Advanced
发布于 2019-08-24 11:33:12
我使用VS 2017和CKEditor 4.12。第一,没有必要将这一点综合起来:
<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>因此:
<CKEditor:CKEditorControl ID="CKEditor1" BasePath="/ckeditor/" runat="server">
</CKEditor:CKEditorControl>您只需在网页中使用以下代码:
<script src="../Scripts/ckeditor/ckeditor.js" ></script>
<textarea name="editor1" id="editor1" rows="10" cols="80">
</textarea>
<div >
<script>
CKEDITOR.replace( 'editor1' );
</script>https://stackoverflow.com/questions/33450015
复制相似问题