Skip to main content
A newer version of this page is available. .

How to: Provide an end-user with a list of templates to insert into the editor

  • 5 minutes to read

This example demonstrates how to open a popup window where an end-user can select from predefined text templates. A selected template is pasted into the ASPxHtmlEditor at the beginning of the editor's text. Suggestion Implement client-side methods and events to work with selection must be implemented before it will be possible to insert text at the current cursor location.See Also:

ASPxHTMLEditorDemos: Client-Side Functionality

How to show the ASPxPopupControl

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace InsertTemplateText {
    public partial class _Default : System.Web.UI.Page {
        protected void Page_Load(object sender, EventArgs e) {

        }
    }
}