2013-11-22 47 views
0

如何使用Rich Text Editor中的簡單編輯器進行ASP.NET和MVC 8.0.1?使用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(); 
     } 

如何使用簡單的模式?

簡單模式:http://richtexteditor.com/demo/simple_editor.aspx

回答

0

這一切都沒有的文件中。

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(); 
} 

相關文章:

  1. RenderMode property
  2. RTERenderMode enumeration
相關問題