Hi,
Can you try the code below in your controller file? does it gets the same error too?
- [ValidateInput(false)]
- public ActionResult toolbar_editor()
- {
- PrepairEditor(delegate(Editor editor)
- {
- editor.Text = "abc";
- });
- return View();
- }
View page you can use the code below
- <!DOCTYPE html>
- <html>
- <head>
- <title>RichTextEditor - Default Toolbar Config</title>
-
- </head>
- <body>
- <h1>
- Default Toolbar Config</h1>
- <p>
- This example simply shows the default toolbar config.
- </p>
- @Html.Raw(ViewBag.Editor)
- </body>
- </html>
Regards,
Ken