C# Markitup编辑器不支持';不要将文本加载回原处

C# Markitup编辑器不支持';不要将文本加载回原处,c#,jquery,.net,asp.net-mvc,markitup,C#,Jquery,.net,Asp.net Mvc,Markitup,我有编辑操作方法对: [HttpGet] public ActionResult Edit(Guid id) { return View(this.session.Load<Article>(id)); } [HttpPost, ValidateAntiForgeryToken] public ActionResult Edit(Article article) { if(ModelState.IsValid) { article.ProblemCo

我有编辑操作方法对:

[HttpGet]
public ActionResult Edit(Guid id) {
    return View(this.session.Load<Article>(id));
}

[HttpPost, ValidateAntiForgeryToken]
public ActionResult Edit(Article article) {
    if(ModelState.IsValid) {
        article.ProblemContext = BBCode.ToHtml(article.ProblemContext);
        article.AuthorId = this.userService.GetActiveDirectoryUserId(User.Identity.Name);
        article.CreatedOn = DateTime.Now;

        this.session.Store(article);
        this.session.SaveChanges();

        TempData["Message"] = String.Format("Article '{0}' was saved successfully", article.Title);
        return RedirectToAction("Index", "Home", new { area = "" });
    }
    return View(article);
}

我做错了什么?

文本区域中没有内容,因为您没有在标记中指定任何内容:

<textarea class="markitupEditor" cols="15" rows="10" name="ProblemContext"> 
</textarea>

或者明确地将内容放在那里:

<textarea class="markitupEditor" cols="15" rows="10" name="ProblemContext"> 
    @Html.Raw(Model.ProblemContext)
</textarea>

@Html.Raw(Model.ProblemContext)
或者使用“使用生成的辅助对象”:


@Html.TextAreaFor(model=>model.ProblemContext,
列:15,行:10,htmlAttributes:new{@class=“Markitupitor”})

文本区域中没有内容,因为您没有在标记中指定任何内容:

<textarea class="markitupEditor" cols="15" rows="10" name="ProblemContext"> 
</textarea>

或者明确地将内容放在那里:

<textarea class="markitupEditor" cols="15" rows="10" name="ProblemContext"> 
    @Html.Raw(Model.ProblemContext)
</textarea>

@Html.Raw(Model.ProblemContext)
或者使用“使用生成的辅助对象”:


@Html.TextAreaFor(model=>model.ProblemContext,
列:15,行:10,htmlAttributes:new{@class=“Markitupitor”})