hmmm CKEditor shows editor but the textbox is still on my page too in asp.net MVC
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" }) %>
精彩评论