0

我正在执行以下控制器操作以在页面中加载富文本编辑器

    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();
    }

最初,上述函数将.HTML文件加载到项目内部包含的富文本编辑器内容。

加载 HTML 文件后,我可以更改该内容。这是最初的看法

在此处输入图像描述

这是富文本编辑器内容的更改视图

在此处输入图像描述

我想将更改后的内容传递给另一种方法,我该怎么做

4

0 回答 0