Editor

Controls

Rate this demo

Thank you for your post!
Submit a support ticket
If you have an active license or trial, you have access to dedicated support from Telerik’s developers. Response time is 24h for active licenses and 72h for trials, Mon-Fri.
Post in the forums
If you don’t have access to support or would like to help other people by sharing your problem, reach out to our active community in the forums.

Editor - Toolbar Mode

The RadEditor's ToolbarMode property specifies the behaviour of the toolbar. When ToolbarMode is set to PageTop, ShowOnFocus or Floating, then the toolbar loads its scripts when it is displayed for the first time, but not when the page is loaded. This lazy initialization of the invisible toolbars increases the loading speed of the control and it is suitable in scenarios with multiple editors.
RadEditor - HTML WYSIWYG Editor. MS Word-like content editing experience thanks to a rich set of formatting tools, dropdowns, dialogs, system modules and built-in spell-check.
RadEditor's components - toolbar, content area, modes and modules
   
Toolbar's wrapper 
 
Content area wrapper
RadEditor's bottom area: Design, Html and Preview modes, Statistics module and resize handle.
It contains RadEditor's Modes/views (HTML, Design and Preview), Statistics and Resizer
Editor Mode buttonsStatistics moduleEditor resizer
 
 
RadEditor's Modules - special tools used to provide extra information such as Tag Inspector, Real Time HTML Viewer, Tag Properties and other.
   
RadEditor - HTML WYSIWYG Editor. MS Word-like content editing experience thanks to a rich set of formatting tools, dropdowns, dialogs, system modules and built-in spell-check.
RadEditor's components - toolbar, content area, modes and modules
   
Toolbar's wrapper  
Content area wrapper
RadEditor's bottom area: Design, Html and Preview modes, Statistics module and resize handle.
It contains RadEditor's Modes/views (HTML, Design and Preview), Statistics and Resizer
Editor Mode buttonsStatistics moduleEditor resizer
 
 
RadEditor's Modules - special tools used to provide extra information such as Tag Inspector, Real Time HTML Viewer, Tag Properties and other.
   

RadEditor - HTML WYSIWYG Editor. MS Word-like content editing experience thanks to a rich set of formatting tools, dropdowns, dialogs, system modules and built-in spell-check.
RadEditor's components - toolbar, content area, modes and modules
   
Toolbar's wrapper  
Content area wrapper
RadEditor's bottom area: Design, Html and Preview modes, Statistics module and resize handle.
It contains RadEditor's Modes/views (HTML, Design and Preview), Statistics and Resizer
Editor Mode buttonsStatistics moduleEditor resizer
 
 
RadEditor's Modules - special tools used to provide extra information such as Tag Inspector, Real Time HTML Viewer, Tag Properties and other.
   

Toolbar Modes

RadEditor introduces a property named ToolbarMode, which specifies the behaviour of the toolbar. Here are the different options for setting the ToolbarMode:

  • Default - the toolbar is static and positioned over the content area
  • PageTop - in this mode, when a particular editor gets the focus its toolbar will appear docked at the top of the page
  • ShowOnFocus - here the toolbar will appear right above the editor when it gets focus.
  • Floating - the toolbar will pop up in a window and will allow the user to move it over the page.
C# VB
Show code in new window Demo isolation steps
<%@ Page Theme="Default" Language="C#" AutoEventWireup="true" CodeFile="DefaultCS.aspx.cs"Inherits="Telerik.Web.Examples.Editor.ToolbarMode.DefaultCS"  %>

<%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>
<%@ 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>
    <title>Specifying toolbar's behaviour of ASP.NET text editor | RadEditor Demo</title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="QsfSkinManager" runat="server" ShowChooser="true" />
    <telerik:RadFormDecorator ID="QsfFromDecorator" runat="server" DecoratedControls="All" EnableRoundedCorners="false" />
     <table class="Container" cellpadding="0" cellspacing="0" border="0">
          <tr>
               <td colspan="2" align="center">
                    <qsf:InformationBox ID="InformationBox1" runat="server" Style="text-align: left;">
                         The RadEditor's <em>ToolbarMode</em> property specifies the behaviour of the toolbar.
                         When <em>ToolbarMode</em> is set to <em>PageTop, ShowOnFocus or Floating</em>, then
                         the toolbar loads its scripts when it is displayed for the first time, but not when
                         the page is loaded. This lazy initialization of the invisible toolbars increases
                         the loading speed of the control and it is suitable in scenarios with multiple editors.
                    </qsf:InformationBox>
               </td>
          </tr>
          <tr>
               <td class="text" colspan="2" valign="top"><label for="ChooseToolbarMode">Choose Toolbar Mode:</label>
                    <asp:DropDownList ID="ChooseToolbarMode" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ChooseToolbarMode_SelectedIndexChanged">
                         <asp:ListItem Value="Default">Default</asp:ListItem>
                         <asp:ListItem Value="PageTop">PageTop</asp:ListItem>
                         <asp:ListItem Value="ShowOnFocus" Selected="True">ShowOnFocus</asp:ListItem>
                         <asp:ListItem Value="Floating">Floating</asp:ListItem>
                    </asp:DropDownList>
               </td>
          </tr>
          <tr>
               <td class="text"><label for="RadEditor1">Editor 1:</label>
               </td>
               <td class="text" style="padding-left: 20px;"><label for="RadEditor2">Editor 2:</label>
               </td>
          </tr>
          <tr>
               <td valign="top">
                    <telerik:RadEditor ID="RadEditor1" runat="server" Width="280px" Height="200px" ToolsFile="ToolsFileLimited.xml">
                         <Content>
                                <img alt="product logo" src="../../Img/productLogoLight.gif" />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: 
                                     <ul>
                                    <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>
                                    </ul>
                         </Content>
                    </telerik:RadEditor>
               </td>
               <td valign="top" style="padding-left: 20px;">
                    <telerik:RadEditor ID="RadEditor2" runat="server" Width="440px" Height="200px" ToolsFile="ToolsFile.xml">
                         <Content>
                         <img alt="product logo" src="../../Img/productLogoLight.gif" /> is the successor of the well known industry standard Editor for ASP.NET. The tight integration with ASP.NET AJAX and powerful new capabilities of the Telerik UI for ASP.NET AJAX suite features the new WYSIWYG Editor as a flexible and lightweight component, turning to be the fastest loading Web Editor. Among the hottest features are:                    
                              <ul>
                                   <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>
                              </ul>
                         </Content>
                    </telerik:RadEditor>
               </td>
          </tr>
          <tr>
               <td class="text" colspan="2">
                    <br />
                    <label for="RadEditor3">Editor 3:</label>
               </td>
          </tr>
          <tr>
               <td colspan="2">
                    <telerik:RadEditor ID="RadEditor3" runat="server" Width="740px" Height="270px">
                         <Content>
                              <img alt="product logo" src="../../Img/productLogoLight.gif" /> is the successor of the well known industry standard Editor for ASP.NET. The tight integration with ASP.NET AJAX and powerful new capabilities of the Telerik UI for ASP.NET AJAX suite features the new WYSIWYG Editor as a flexible and lightweight component, turning to be the fastest loading Web Editor. Among the hottest features are:                    
                              <ul>
                                   <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>
                              </ul>
                         </Content>
                         <Modules>
                              <telerik:EditorModule Name="fakeModule"></telerik:EditorModule>
                         </Modules>
                    </telerik:RadEditor>
               </td>
          </tr>
     </table>
    </form>
</body>
</html>