如何从Rich Text Editor中为ASP.NET和MVC 8.0.1使用简单编辑器?
我正在使用以下代码:
public ActionResult Index()
{
Editor Editor1 = new Editor(System.Web.HttpContext.Current, "Editor1");
Editor1.LoadFormData("Content");
Editor1.MvcInit();
ViewBag.Editor = Editor1.MvcGetString();
return View();
}
如何使用简单模式?
这些都在文档中。
public ActionResult Index()
{
Editor Editor1 = new Editor(System.Web.HttpContext.Current, "Editor1");
Editor1.LoadFormData("Content");
Editor1.MvcInit();
Editor1.RenderMode = RTERenderMode.Simple;
ViewBag.Editor = Editor1.MvcGetString();
return View();
}
相关文件:
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句