richtext editor edited content pass to another controller

489 Views Asked by At

I'm having following controller action to load rich text editor in a page

    public ActionResult Index()
    {            

        Editor Editor1 = new Editor(System.Web.HttpContext.Current, "Editor1");            

        Editor1.LoadHtml("~/brochuretemplates/myhtml.html");

        Editor1.MvcInit();

        ViewBag.Editor = Editor1.MvcGetString();

        return View();
    }

Initially above function load .HTML file to richtext editor content that contains inside the project.

Once HTML file loaded, I can do changes of that content. this is the initial view of that

enter image description here

this is the changed view of that rich text editor content

enter image description here

I want to pass that changed content to another method how can I do that

0

There are 0 best solutions below