title: How do I use ACE for TextAreaFor in ASP.NET MVC5 application?
body: <p>I am trying to Get <code>ACE</code> editor for <code>javaScript</code> purpose but i am not able to post my Editor data when i am clicking Save button its show <code>NULL</code> value in DB.
  but when i am using normal <code>Textarea</code> without <code>ACE</code> my data is saving properly.</p>
  
  <p>This is My CSHTML code.</p>
  
  <pre><code>&lt;div class="form-group row"&gt;
      &lt;div class="col-lg-11" id="JavaScriptEditor"&gt;
          @Html.Label("JavaScript", new { @class = "control-label" })
          @Html.TextAreaFor(x=&gt;x.JavaScript,new {@class="JavaScript"})
          @Html.ValidationMessageFor(model =&gt; model.JavaScript, "", new { @class = "text-danger" })
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>This is my JS Code:-</p>
  
  <pre><code>&lt;script&gt;
      var editor = ace.edit("JavaScript");
      editor.setTheme("ace/theme/terminal");
      editor.getSession().setMode("ace/mode/javascript");
      window.onload = function () {
          $("form").submit(function () {
              $(".JavaScript").val().editor.getSession().getValue();
          })
      };
  &lt;/script&gt;
  </code></pre>
  
  <p>This is My Controller Code:-</p>
  
  <pre><code>[HttpPost]
  [ValidateInput(false)]
  public ActionResult AddEdit(Article article, FormCollection formCollection)
  {
      article.CompanyId = OperatingUser.CompanyId;
  
      if(string.IsNullOrWhiteSpace(article.Slug))
          article.Slug = article.Name.GenerateSlug();
      if (string.IsNullOrWhiteSpace(article.SlugKey))
          article.SlugKey = SlugKey();
      //bool isUnique = _articleService.IsSlugUnique(slug: article.Slug, articleId: article.Id);
      //if (!isUnique)
      //    article.Slug = $"{article.Slug}-1";
      article.CreatedById = OperatingUser.Id;
      article.ModifiedById = OperatingUser.Id;
      if (article.Tags != null &amp;&amp; article.Tags.Any())
          article.Tag = string.Join(",", article.Tags);
      if (formCollection.GetValue("SubmitButton").AttemptedValue
          .Equals("Save and Publish", StringComparison.OrdinalIgnoreCase))
          article.IsPublished = true;
      article.RoleIds = formCollection.GetValue("selectedRoles").AttemptedValue;
  
      if (article.Id &gt; 0)
      {
          article.ModifiedById = OperatingUser.Id;
          _articleService.Update(article);
      }
      else
      {
          article = _articleService.Add(article);
      }
      return Json(new { RedirectUrl = Url.Action("Edit", "Content", new { area="cms", id = article.Id }) });
  }
  </code></pre>
  
  <p>I am trying to Save This Property  data in Db but i am not able to  Save this Please Help me.</p>