开发者

hmmm CKEditor shows editor but the textbox is still on my page too in asp.net MVC

开发者 https://www.devze.com 2022-12-21 16:14 出处:网络
i have this: <%@ Control Language=\"C#\" Inherits=\"System.Web.Mvc.ViewUserControl<string>\" %>

i have this:

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


<script src="<%=Url.Content("~/Scripts/ckeditor/ckeditor.js")%>" type="t开发者_运维问答ext/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"}) %>

the strange thing the editor shows up just fine, but for some reason there is still the origanl textbox on the page ??? so i now have 2 EmployeeDescription

anyone got a clue?


Try replacing Class by @class:

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

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号