Data posted from Html editor not works in Chrome

370 Views Asked by At

I am using Html Editor in MVC3 view to store article info as:

 @using (Html.BeginForm())
     {
      ...
      @Html.TextAreaFor(model => model.OtherInformation, new { @id = "OtherInformation" })
      ...
     }
<link href="@Url.Content("~/Content/jquery.cleditor.css")" rel="stylesheet" type="text/css" />
<script src="@Url.Content("~/Scripts/jquery.cleditor.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.cleditor.xhtml.min.js")" type="text/javascript"></script>
<script type="text/javascript">
    $("#OtherInformation").cleditor();
</script> 

and in controller I have written the code to save article as:

       [ValidateInput(false)]
       [HttpPost]
        public ActionResult Create(Article article)
        {            

            if (ModelState.IsValid)
            {
                article.EntryDate = DateTime.Now;
                new ArticleService().SaveOrUpdateArticle(article);
                return RedirectToAction("ArticleIndex");
            }

            return View(article);
        }

This all works fine in IE,but when I run the same in Chrome then "OtherInformation" always go Null.

1

There are 1 best solutions below

0
On

This problem was fixed in version 1.4.0.