RichTextEditor exposes number of events that you can subscribe to. By registering event handlers, you can interact with it once the editor is loaded and running. In RichTextEditor, there are three event registration models to register event handlers:
Global events are broadcast to all editors in the page, triggering any handlers which may be listening.
Using config object event Property
RichTextEditor_OnLoader automatically receives an asynchronous loader object. A loader 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.
Using editor.AttachEvent Method
The editor.AttachEvent( ) method requires two parameters:
The event parameter is the "on" version of the event name, while the function reference is just like the kind you assign to an object event handler property. The combination of AttachEvent( ) and DetachEvent( ) allows scripts to enable and disable scripted functionality as desired.
Send feedback about this topic to CuteSoft. © 2003 - 2014 CuteSoft Components Inc. All rights reserved.