field.js
No description.

File Location

/goog/editor/field.js

Classes

goog.editor.Field
This class encapsulates an editable field. event: load Fires when the field is loaded event: unload Fires when the field is unloaded (made not editable) event: beforechange Fires before the content of the field might change event: delayedchange Fires a short time after field has changed. If multiple change events happen really close to each other only the last one will trigger the delayedchange event. event: beforefocus Fires before the field becomes active event: focus Fires when the field becomes active. Fires after the blur event event: blur Fires when the field becomes inactive TODO: figure out if blur or beforefocus fires first in IE and make FF match

Public Protected Private

Enumerations

Global Functions

goog.editor.Field.cancelLinkClick_(e)
Event handler for clicks in browsers that will follow a link when the user clicks, even if it's editable. We stop the click manually
Arguments:
e : goog.events.BrowserEvent
The event.
code »
goog.editor.Field.getActiveFieldId() ?string
No description.
Returns: ?string  The id of the active field.
code »
goog.editor.Field.isGeneratingKey_(etestAllKeys) boolean
Returns true if the keypress generates a change in contents.
Arguments:
e : goog.events.BrowserEvent
The event.
testAllKeys : boolean
True to test for all types of generating keys. False to test for only the keys found in goog.editor.Field.KEYS_CAUSING_CHANGES_.
Returns: boolean  Whether the keypress generates a change in contents.
code »
goog.editor.Field.isSpecialGeneratingKey_(e) boolean
Returns true if the keypress generates a change in the contents. due to a special key listed in goog.editor.Field.KEYS_CAUSING_CHANGES_
Arguments:
e : goog.events.BrowserEvent
The event.
Returns: boolean  Whether the keypress generated a change in the contents.
code »
goog.editor.Field.setActiveFieldId(fieldId)
Sets the active field id.
Arguments:
fieldId : ?string
The active field id.
code »

Directory editor

File Reference