Edit this page

Editor HtmlHelper Overview

The Editor HtmlHelper extension is a server-side wrapper for the Kendo UI Editor widget.

It enables you to configure the Editor from server-side code. The Editor allows you to create rich textual content through a What-You-See-Is-What-You-Get (WYSIWYG) interface. The generated widget value is an XHTML markup.

For more information on the HtmlHelper, refer to the article on the Editor HtmlHelper for ASP.NET MVC.

Basic Usage

The following example demonstrates how to define the Editor by using the Editor HtmlHelper.

    .HtmlAttributes(new { style = "height:440px" })
    .Resizable(resizable => resizable.Content(true).Toolbar(true))
            Kendo UI Editor allows your users to edit HTML in a familiar, user-friendly way.<br />
            In this version, the Editor provides the core HTML editing engine, which includes basic text formatting, hyperlinks, lists,
            and image handling. The widget <strong>outputs identical HTML</strong> across all major browsers, follows
            accessibility standards and provides API for content manipulation.
        <p>Features include:</p>
            <li>Text formatting &amp; alignment</li>
            <li>Bulleted and numbered lists</li>
            <li>Hyperlink and image dialogs</li>
            <li>Cross-browser support</li>
            <li>Identical HTML output across browsers</li>
            <li>Gracefully degrades to a <code>textarea</code> when JavaScript is turned off</li>
    public class EditorController : Controller
        public ActionResult Index()
            return View();


The following example demonstrates the basic configuration of the Editor HtmlHelper and how to get the Editor instance.

    .HtmlAttributes(new { style = "width: 100%;height:440px" })
    .ImageBrowser(imageBrowser => imageBrowser
        .Read("Read", "ImageBrowser")
        .Create("Create", "ImageBrowser")
        .Destroy("Destroy", "ImageBrowser")
        .Upload("Upload", "ImageBrowser")
        .Thumbnail("Thumbnail", "ImageBrowser")
    .FileBrowser(fileBrowser => fileBrowser
        .Read("Read", "FileBrowser")
        .Create("Create", "FileBrowser")
        .Destroy("Destroy", "FileBrowser")
        .Upload("Upload", "FileBrowser")
    .Pdf(pdf => pdf
        .Margin(20, 20, 20, 20)
        .ProxyURL(Url.Action("Pdf_Export_Save", "Editor"))
    .Tools(tools => tools
        .Snippets(snippets => snippets
            .Add("Signature", "<p>Regards,<br /> John Doe,<br /><a href='mailto:john.doe@example.com'>john.doe@example.com</a></p>")
            .Add("Kendo online demos", " <a href='http://demos.telerik.com/kendo-ui'>Kendo online demos</a> ")
            Kendo UI Editor allows your users to edit HTML in a familiar, user-friendly way.

    <script type="text/javascript">
    $(function() {
        //Notice that the Name() of the Editor is used to get its client-side instance.
        var editor = $("#editor").data("kendoEditor");

See Also