Loader |
RichTextEditor_OnLoader automatically receives an asynchronous loader object. A loader is an object that is responsible for loading editor necessary libraries, layout information and asynchronously save data into cache. You can get _config object from the loader, so can execute custom actions to change the configuration.
You can access the settings defined in the client side configuration file (richtexteditor\scripts\config.js) only after loader.oncoreload event occurs.
<script type='text/javascript'> function RichTextEditor_OnLoader(loader) { var config=loader._config; config.OnCoreLoad=function() { } config.OnLoad=function(editor) { } config.OnTextChanged=function(editor) { } } </script>
Loader exposes the following methods.
Method | Description |
---|---|
loader.load() | Loads the editor. |
loader.startLoadTimer(milliseconds) | Loads the editor in the specified time in milliseconds. |
loader.cancelLoadTimer | Cancels the loading task set by startLoadTimer. |
loader.asyncloadscript(url,callback) | Loads a JavaScript file asynchronously. |
loader.preloadScripts | Preloads editor JavaScript files and speed up the loading process of editor when calling loader.load() method. |
Send feedback about this topic to CuteSoft. © 2003 - 2012 CuteSoft Components Inc. All rights reserved.