Editor - Built-in Modules

  • Show/Hide Border
  • Table Properties
  • Delete Table
  • Row
    • Insert Row Above
    • Insert Row Below
    • Delete Row
  • Column
    • Insert Column to the Left
    • Insert Column to the Right
    • Delete Column
  • Cell
    • Merge Cells Horizontally
    • Merge Cells Vertically
    • Split Cell Horizontally
    • Split Cell Vertically
    • Delete Cell
  • Cell Properties
  • Table Properties
  • Properties...
  • Image Map Editor
  • Properties...
  • OpenLink
  • Remove Link
  • Insert Select
  • Cut
  • Copy
  • Paste
  • Paste from Word
  • Paste Plain Text
  • Paste As Html
  • Paste Html
Isolate this demo as a stand-alone application
  • About this demo
  • C#
  • VB

Modules are special units in RadEditor, used for providing some statistics or for easier setting of properties for HTML elements.

Modules can dynamically change their content and provide some level of interactivity. Just change some text and see the changes appear immediately in the HTML View Module.

RadEditor comes with several modules included:

  • Statistics
  • DOM Inspector
  • Node Inspector
  • Real-Time HTML View

The modules could be visible or hidden via the Module Selector tool .

They can be registered:

  • Inline in the RadEditor's declaration using the <Modules> and <telerik:EditorModule>inner-tags:

    <telerik:radeditor runat="server" ID="RadEditor1">   
          <telerik:EditorModule Name="RadEditorStatistics" Visible="true" Enabled="true"/>
    telerik:EditorModule Name="RadEditorDomInspector" Visible="true" Enabled="true"/>
    telerik:EditorModule Name="RadEditorNodeInspector" Visible="true" Enabled="true"/>
    telerik:EditorModule Name="RadEditorHtmlInspector" Visible="true" Enabled="true"/>
  • Via the codebehind:

    using Telerik.Web.UI;
    EditorModule htmlInspector
    = new EditorModule();
    htmlInspector.Name = "RadEditorHtmlInspector";
    htmlInspector.Visible = true;
  • Via the ToolsFile.xml file:

    <module name="RadEditorStatistics" dockingZone="Bottom" enabled="true" visible="true" />
    module name="RadEditorDomInspector" dockingZone="Module" enabled="true" visible="true" />
    module name="RadEditorNodeInspector" dockingZone="Module" enabled="true" visible="true"/>
    module name="RadEditorHtmlInspector" dockingZone="Module" enabled="true" visible="false" />

More information about the built-in modules is available in the following help article: Types of Modules.

Related Resources

  • DefaultCS.aspx
  • DefaultCS.aspx.cs
  • styles.css
  • BasicTools.xml
<%@ Page Language="C#" Theme="Default" AutoEventWireup="true" CodeFile="DefaultCS.aspx.cs"Inherits="Telerik.Web.Examples.Editor.BuiltinCustomModules.DefaultCS"  %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
<link href="../Common/styles.css" rel="stylesheet" type="text/css" />
    <link href="styles.css" rel="stylesheet" />
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <div class="demo-container">
        <telerik:RadEditor RenderMode="Lightweight" SkinID="DefaultSetOfTools" runat="server" ID="RadEditor1" Height="550px" Width="850"
            ToolsFile="BasicTools.xml" CssClass="centered-editor">
                <telerik:EditorModule Name="RadEditorDomInspector" Visible="true" Enabled="true"></telerik:EditorModule>
                <telerik:EditorModule Name="RadEditorNodeInspector" Visible="true" Enabled="true"></telerik:EditorModule>
            <table style="width: 650px; height: 305px; border: 1px solid #f00;" cellspacing="2">
                        <td> <img alt="product logo" src="../../images/productLogoLight.gif" /></td>
                        <p style="text-align: justify;"><span style="COLOR: 111111;FONT-SIZE: 11px; FONT-FAMILY: MS Sans Serif">is the successor of the well known industry standard Editor for ASP.NET. The tight integration with ASP.NET AJAX and the powerful new capabilities make Telerik's WYSIWYG Editor a flexible and lightweight component, turning it into the fastest loading Web Editor. Among the hottest features are: </span></p>
                            <li><em>Single-file, drag-and-drop deployment</em> </li>
                            <li><em>Built on top of ASP.NET AJAX</em> </li>
                            <li><em>Unmatched loading speed with new semantic rendering </em></li>
                            <li><em>Full keyboard accessibility</em> </li>
                        <li><em>Flexible Skinning mechanism</em> </li>
                        <li><em>Simplified and intuitive toolbar configuration</em> </li>
                        <li><em>Out-of-the-box XHTML-enabled output</em></li>
                        <li><em>Full keyboard accessibility</em> </li>

Find Assistance

Help Us Improve

Was this example helpful?