Version

WebHtmlEditor Client-Side Events

Client Side Events

The following are client-side events supported by the WebHtmlEditor control.

Note
Note:

Most of these client-side events are cancelable. The most significant of which are the Before events. To cancel an event, return true in the event handler. For cases in which a Before event has a corresponding server-side event handled, returning true in the client-side event also cancels the postback to trigger the server-side event.

Client Side Events Properties

AfterAction

That event is fired after toolbar action occurred.

Parameters

oEditor

Reference to javascript object which represents WebHtmlEditor. actID

The id of action. That can be Key of Toolbar item (if it is set) or the Type of Toolbar item. oEvent

Event arguments. That can be used to cancel or raise postback. p4

Parameter for advanced use only. It can be null or its content can be different for different events. There is no guarantee that parameter will be used same way in future versions of editor as it is used now. p5

same as p4 p6

same as p4 p7

same as p4 p8

same as p4

Remarks

The following example shows the event being used.


BeforeAction

That event is fired before toolbar action occured.

Parameters

oEditor

Reference to javascript object which represents WebHtmlEditor. actID

The id of action. That can be Key of Toolbar item (if it is set) or the Type of Toolbar item. oEvent

Event arguments. That can be used to cancel action, raise postback, modify parameters. p4

Parameter for advanced use only. It can be null or its content can be different for different events. There is no guarantee that parameter will be used same way in future versions of editor as it is used now. p5

same as p4 p6

same as p4 p7

same as p4 p8

same as p4 act

The internal action used by WebHtmlEditor. This parameter defines the action which occurs for a particular event.

Remarks

Example 1:

Example 2:

Example 3:


Blur

That event is fired when editor loses focus.

Parameters

oEditor

Reference to javascript object which represents WebHtmlEditor.

Remarks

The following example shows the event being used.


Focus

That event is fired when editor gets focus.

Parameters

oEditor

Reference to javascript object which represents WebHtmlEditor.

Remarks

The following example shows the event being used.


Initialize

That event is fired after javascript object was created and initialized. That event can be used to modify/configure editor.

Parameters

oEditor

Reference to javascript object which represents WebHtmlEditor.

Remarks

Example 1:

Example 2:

KeyDown

That event is fired when editor gets keydown event of browser.

Parameters

oEditor

Reference to javascript object which represents WebHtmlEditor. keyCode

The keyCode of browser event. oEvent

Event arguments. That can be used to cancel that event or raise postback.

Remarks

The following example shows the event being used.


KeyPress

That event is fired when editor gets keypress event of browser.

Parameters

oEditor

Reference to javascript object which represents WebHtmlEditor. keyCode

The keyCode of browser event. oEvent

Event arguments. That can be used to cancel that event or raise postback.

Remarks

Example 1:

Example 2: