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.
- Upload images from a rich text editor in ASP.NET Web Forms
- Add an image gallery to a rich text editor in Web Forms
- Gallery folders in ASP.NET Web Forms: browse and create safely
- Per-user image folders in ASP.NET Web Forms
- Secure image uploads in ASP.NET Web Forms
- Upload size limits in ASP.NET Web Forms on IIS