Rich text editor for ASP.NET Web Forms

Keep your .aspx page and postback workflow. In the working sample, an IHttpHandler receives uploaded images and returns their URLs to the editor.

Run the sample locally

On Windows with IIS Express installed, extract the sample and the editor trial. From the sample folder, point the startup script at the directory containing rte.js.

.\run.ps1 -EditorPath "C:\path\to\richtexteditor"

Open http://localhost:5401/ and choose Insert Gallery to upload an image.

Connect the editor to your application

Open Default.aspx in the sample. It loads the editor assets and upload adapter before initializing the gallery.

<div id="editor"></div>
<script>
    var editor = new RichTextEditor("#editor", {
        toolbar: "full",
        galleryEndpoint: "<%= ResolveUrl("~/rte/gallery") %>",
        maxUploadFileSize: 4000000   // same limit as the server
    });
</script>

Follow the upload walkthrough for the server code and configuration. A $129 domain license covers the purchased editor version and one year of updates.

Guides for Web Forms: uploads, gallery and files

Tested server code for each step, one problem per page.

All Web Forms guides