This is a migrated thread and some comments may be shown as answers.

Does disable EditorModule optimize it?

3 Answers 29 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Lenny_shp
Top achievements
Rank 2
Lenny_shp asked on 18 Mar 2010, 08:56 PM
http://www.telerik.com/help/aspnet-ajax/editor_disablehidemodules.html

If I don't need any of the modules, does setting them to visible = false gain any speed or render size? 
Currently I hide the toolbar as well.  It shows as regular multi-line textbox.

            <RadEditor ID="txtAvailabilityDetails" xmltag="AvailabilityDetails" Runat="server" OnClientLoad="OnClientLoadRadEditor" AutoResizeHeight="True" Skin="Simple"
                                  BorderStyle="None" BorderWidth="0px" style="height:auto" ToolProviderID="txtMaterialsRequired"
                                  EditModes="Design" ToolsFile="~\EmptyTools.xml" Height="25px" >
                <Content/>
            </RadEditor>   

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 19 Mar 2010, 06:15 PM
Hi Lenny_shp,

You will gain loading speed / render size only when removing the modules by setting enabled=false in their declarations.

Best regads,
Rumen
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Lenny_shp
Top achievements
Rank 2
answered on 08 Jul 2010, 02:22 PM
"If the modules node is not declared the default settings will be applied."

Is not-loading the default?   Or do I need to specify this?

  <modules>
    <module name="RadEditorHtmlInspector" enabled="false"></module>
    <module name="RadEditorNodeInspector" enabled="false"></module>
    <module name="RadEditorDomInspector" enabled="false"></module>
    <module name="RadEditorStatistics" enabled="false"></module>
  </modules>  
0
Accepted
Rumen
Telerik team
answered on 08 Jul 2010, 02:39 PM
Hi Lenny_shp,

By default all modules are loaded on the page with RadEditor. Yes, to hide them set the enabled attribute to false in the ToolsFile.xml:

  <modules>
    <module name="RadEditorHtmlInspector" enabled="false"></module>
    <module name="RadEditorNodeInspector" enabled="false"></module>
    <module name="RadEditorDomInspector" enabled="false"></module>
    <module name="RadEditorStatistics" enabled="false"></module>
  </modules>  


Kind regards,
Rumen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Editor
Asked by
Lenny_shp
Top achievements
Rank 2
Answers by
Rumen
Telerik team
Lenny_shp
Top achievements
Rank 2
Share this question
or