|
Client-Side Events
RadEditor provides a rich client-side
event model. You can attach custom client-script code (JavaScript) to a number of
client-side events fired by the editor. All client-side events are exposed as
string properties to the RadEditor instance
with the value being the name of the JavaScript function to be called.
Below is a
list of all
client-side events and methods that are currently supported by RadEditor:
Events
- OnClientLoad - fired after
the RadEditor is loaded on the client
- OnClientCommandExecuting - fired
just before a command is executed
- OnClientCommandExecuted - fired after a command is executed
- OnClientSelectionChange - fired when the selection within the editor content
area has changed.
The example above demonstrates some of the most useful editor Client-side Events
for loading, editor command execution and content area selection. The OnClientSelection
Changed event is very important and shown in action above, where the current editor
content area selection is captured and displayed in a DIV element.
|