search

goog.editor.Field.EventType

Provided By
Typestring

Event types that can be stopped/started.

Values

BEFORECHANGE

Dispatched before the field contents are changed.

BEFOREFOCUS

Dispatched before focus in moved into the field.

BEFORESELECTIONCHANGE

Dispatched after a user action that will eventually fire a SELECTIONCHANGE event. For mouseups, this is fired immediately before SELECTIONCHANGE, since #handleMouseUp_ fires SELECTIONCHANGE immediately. May be fired up to #SELECTION_CHANGE_FREQUENCY_ ms before SELECTIONCHANGE is fired in the case of keyup events, since they use #selectionChangeTimer_.

BEFORETAB

Dispatched before tab is handled by the field. This is a legacy way of controlling tab behavior. Use trog.plugins.AbstractTabHandler now.

BLUR

Dispatched when the field is blurred.

CHANGE

Dispatched when the field contents change, in FF only. Used for internal resizing, please do not use.

COMMAND_VALUE_CHANGE

Dispatched when the command state of the selection may have changed. This event should be listened to for updating toolbar state.

DELAYEDCHANGE

Dispatched on a slight delay after changes are made. Use for autosave, or other times your app needs to know that the field contents changed.

FOCUS

Dispatched when focus is moved into the field.

IFRAME_RESIZED

Dispatched after the iframe containing the field is resized, so that UI components which contain it can respond.

LOAD

Dispatched when the field is loaded and ready to use.

SELECTIONCHANGE

Dispatched when the selection changes. Use handleSelectionChange from plugin API instead of listening directly to this event.

UNLOAD

Dispatched when the field is fully unloaded and uneditable.