Skip to content

Instantly share code, notes, and snippets.

@peterkeating
Created June 11, 2012 11:08
Show Gist options
  • Select an option

  • Save peterkeating/2909610 to your computer and use it in GitHub Desktop.

Select an option

Save peterkeating/2909610 to your computer and use it in GitHub Desktop.
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