页面引用FCK JS 和jquery .js
View调用
@Html.FckText("Content2", Model.Content2)
后台扩展方法
public static MvcHtmlString FckText(this System.Web.Mvc.HtmlHelper helper, string name, string val, string width = "1500", string height = "400")
{
if (string.IsNullOrEmpty(name))
{
return MvcHtmlString.Create("name属性为必须");
}
int thm = DateTime.Now.Millisecond;
string html = @"
<script type=""text/javascript"">