select

Editor / Displaying RadEditor as a TextBox

Rate this demo: Feedback
Run example in: C# VB.NET Change Skin:
Vista
  • BlackBlack
  • DefaultDefault
  • ForestForest
  • HayHay
  • Office2007Office2007
  • OutlookOutlook
  • SimpleSimple
  • SitefinitySitefinity
  • SunsetSunset
  • TelerikTelerik
  • VistaVista
  • Web20Web20
  • WebBlueWebBlue
  • Windows7Windows7
Registration Form
First Name:
Last Name:
Occupation:
Resume:
   
  
 
 
   
Click in the content area to show the toolbar.
   

Example Source Code & Description

Instructions
Open in new window
  • Displaying RadEditor as a TextArea/TextBox

    In order to produce a textbox-like RadEditor follow the steps below:
    1. Register the following css classes:

          <style type="text/css">    
         
      /* The following CSS needs to be copied to the page to produce textbox-like RadEditor */
         
      .reWrapper_corner, .reWrapper_center 
         
      {
                 display
      : none !important;                
         
      }
                      
         
      .reLeftVerticalSide, 
         
      .reRightVerticalSide, 
         
      .reToolZone,
         
      .reToolCell
         
      {
              background
      : white !important;
         
      }
          
         
      .reContentCell
         
      {
              border-width
      : 0 !important;
         
      }
          
         
      .RadEditor
         
      {
                 filter
      : chroma(color=c2dcf0);
         
      }
          <
      /style>
    2. Hide the Html and Preview Mode buttons by setting: EditModes="Design"
       
    3. Set the ToolbarMode property to ShowOnFocus: ToolbarMode="ShowOnFocus"
       
    4. Load only a few buttons in the Toolbar. In the example, the editor loads BasicTools.xml via its ToolsFile property: ToolsFile="~/Editor/Examples/EditorAsTextBox/BasicTools.xml"
       
    5. Set the toolbar width via the ToolsWidth property, e.g. ToolsWidth="330px"
Compatible with ASP.NET 2.0, 3.5 AJAX enabled Accessibility Verified!Valid XHTML 1.1! Optimized for Visual Studio 2005, 2008
Copyright 2002-2010 © Telerik. All right reserved  | 
Telerik Inc., 460 Totten Pond Rd, Suite 640, Waltham, MA 02451

www.telerik.com  |  Terms of Use  |  Contact Us