Load HTMLEditor.js conditionally

4 posts, 0 answers
  1. Christopher
    Christopher avatar
    2 posts
    Member since:
    Jan 2009

    Posted 29 Jan 2009 Link to this post

    In order to optimize sharepoint public facing web sites, could htmleditor.js be loaded conditionally?  It was noticed the file size of HtmlEditor.js is about 283 KB which seems like a lot to load especially those with slower connections.  Would loading this conditionally be possible?  If so, how do we know about setting this up?

    Thanks,
    Chris
  2. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 02 Feb 2009 Link to this post

    Hello Christopher,

    The RadEditor does not have configuration property that affects the loading of HTMLEditor.js. What you should know is that RadEditor uses some of the default MOSS Editor dialogues and if you do not load this file these dialogues will throw javascript errors. What you can do is disable the usage of the respective MOSS dialogues by modifying the ToolsFile.xml located in /Program Files/Common Files/Microsoft Shared/web server extensions/wpresources/RadEditorSharePoint/5.3.1.0__1f131a624888eeed/Resources/CssEditor.css folder (5.3.1.0__1f131a624888eeed depends on the version of the control) and remove rows such as:
    <tool name="MOSSLinkManager" shortcut="CTRL+K" /> 
    <tool name="MOSSTemplateManager" /> 
    <tool name="MOSSInsertTable" /> 
    <tool name="MOSSRightToLeft" /> 
    <tool name="MOSSLeftToRight" /> 
     

    Afterwards backup(move) the content from HTMLEditor.js to some other file.

    I hope this helps.

    All the best,
    Stanimir
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.

  3. Christopher
    Christopher avatar
    2 posts
    Member since:
    Jan 2009

    Posted 05 Feb 2009 Link to this post

    Thank you for the response Stanimir. The usage of MOSS editor dialogues (in which RadEditor uses), does it trigger core.js, init.js, and other js files to load?  If it does, by disabling  MOSS Editor dialogue, will this improve the public facing site load time?

    Thanks,
    Chris
  4. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 09 Feb 2009 Link to this post

    Hi Christopher,

    RadEditor does not use core.js or init.js. So it should not be affected if you do some optimizations of your MOSS site.


    I found this article on How to Optimize a SharePoint Server 2007 Web Content Management Site for Performance there you can find information on how to load the core.js file in the background for an anonymous user.

    I hope this helps.

    All the best,
    Stanimir
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top