Re: MVC Post Model error

  •  10-14-2015, 10:49 AM

    Re: MVC Post Model error

    Hi,

     

    Can you try the code below in your controller file? does it gets the same error too?

     

    1. [ValidateInput(false)]  
    2.     public ActionResult toolbar_editor()  
    3.     {  
    4.         PrepairEditor(delegate(Editor editor)  
    5.         {  
    6.                editor.Text = "abc";  
    7.         });  
    8.         return View();  
    9.     }  
     

    View page you can use the code below

     

    1. <!DOCTYPE html>  
    2. <html>  
    3. <head>  
    4.     <title>RichTextEditor - Default Toolbar Config</title>  
    5.     
    6. </head>  
    7. <body>  
    8.     <h1>  
    9.         Default Toolbar Config</h1>  
    10.     <p>  
    11.         This example simply shows the default toolbar config.  
    12.     </p>  
    13.     @Html.Raw(ViewBag.Editor)  
    14. </body>  
    15. </html>  
     

    Regards,

     

    Ken 

View Complete Thread