Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/30.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
hmmm CKEditor显示编辑器,但在asp.net MVC中文本框仍在我的页面上_Asp.net_Asp.net Mvc_Asp.net Mvc 2_Ckeditor - Fatal编程技术网

hmmm CKEditor显示编辑器,但在asp.net MVC中文本框仍在我的页面上

hmmm CKEditor显示编辑器,但在asp.net MVC中文本框仍在我的页面上,asp.net,asp.net-mvc,asp.net-mvc-2,ckeditor,Asp.net,Asp.net Mvc,Asp.net Mvc 2,Ckeditor,我有这个: <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<string>" %> <script src="<%=Url.Content("~/Scripts/ckeditor/ckeditor.js")%>" type="text/javascript"></script> <script type="text/javascript"&

我有这个:

<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<string>" %>


<script src="<%=Url.Content("~/Scripts/ckeditor/ckeditor.js")%>" type="text/javascript"></script>

<script type="text/javascript">
$(document).ready(function() {
        var CurrName = $(".ckeditor").attr("name");
        CKEDITOR.replace(CurrName, { width: "800" });
});
</script>
<span>Description</span>
<%=Html.TextArea("",Model,10,40,new{Class="ckeditor"}) %>

$(文档).ready(函数(){
var CurrName=$(“.ckeditor”).attr(“名称”);
CKEDITOR.replace(CurrName,{width:“800”});
});
描述
奇怪的是,编辑器显示得很好,但出于某种原因,页面上仍然有原始文本框???所以我现在有两个员工描述


有人有线索吗?

试着用
@Class
替换
Class

<%= Html.TextArea("", Model, 10, 40, new { @class = "ckeditor" }) %>

这种形式的类实际上可以在没有@if小写的情况下工作,结果是我将的标签改为editfor,而不是so的文本框2,我工作过度了,但必须完成:-)将标记为答案,尽管谢谢