Created
June 11, 2012 11:08
-
-
Save peterkeating/2909610 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Web.Mvc; | |
| using CKEditorExample.ViewModels.Content; | |
| namespace CKEditorExample.Controllers | |
| { | |
| public class ContentController : Controller | |
| { | |
| [HttpGet] | |
| public ActionResult Index() | |
| { | |
| return View(); | |
| } | |
| [HttpPost] | |
| [ValidateInput(false)] | |
| public ActionResult Submit(ContentViewModel model) | |
| { | |
| ViewBag.Text = model.Text; | |
| return View(); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment