RadEditor for ASP.NET

Edit Modes Send comments on this topic.
See Also
Editor Views and Modes > Edit Modes

Glossary Item Box

RadEditor can be switched into three different edit modes: Editable, Non Editable and No Permission.

  • Editable - in this mode the content of the RadEditor can be edited right after the page is loaded in the client's browser:

    ASPX/ASCX Copy Code
    <rad:radeditor id="RadEditor1" runat="server"
      
    Editable="true"
      
    HasPermission="true">
      
    You can edit the content of this editor right after the page is loaded.
    </rad:radeditor>

  • Not Editable - in this mode the content is not editable when the page is loaded in the browser, but can be switched to Editable by pressing the Pencil button. This is the default mode when no properties are set.

    ASPX/ASCX Copy Code
    <rad:radeditor id="RadEditor2" runat="server"
      
    Editable="false"
      
    HasPermission="true"
      
    You can switch to Editable mode by clicking the pencil button.
    <
    /rad:radeditor>

  • No Permission- in this mode the content is not editable when the page is loaded and cannot be switched to Editable because the Pencil  button is not displayed. This is useful in situations where you want to prevent editing the content:

    ASPX/ASCX Copy Code
    <rad:radeditor id="RadEditor3" runat="server"
         
    HasPermission="false"
      
    You cannot edit the content of this editor at all.
    <
    /rad:radeditor>

When the edit mode is changed using the [Pencil] button the EditableChanged event is raised.
Note also that all properties can be set using inline HTML declaration, code-behind or the ConfigFile.xml file.

You can see a live example that demonstrates how the HasPermission and Editable properties work here: Edit Modes Example.

 

See Also