The goog.editor.ClickToEditWrapper Class

goog.editor.ClickToEditWrapper
> goog.Disposable

goog.editor.ClickToEditWrapper(fieldObj)

Initialize the wrapper, and begin listening to mouse events immediately.

fieldObj {goog.editor.Field}
The editable field being wrapped.

.addOnDisposeCallback(callback, opt_scope)

Inherited from goog.Disposable .

Invokes a callback function when this object is disposed. Callbacks are invoked in the order in which they were added.

callback {!Function}
The callback function.
opt_scope {Object=}
An optional scope to call the callback in.

.creationStack {string}

Inherited from goog.Disposable .

If monitoring the goog.Disposable instances is enabled, stores the creation stack trace of the Disposable instance.

.dispose()

Inherited from goog.Disposable .

Disposes of the object. If the object hasn't already been disposed of, calls {@link #disposeInternal}. Classes that extend {@code goog.Disposable} should override {@link #disposeInternal} in order to delete references to COM objects, DOM nodes, and other disposable objects. Reentrant.

returns {void}
Nothing.

.enterDocument()

Initialize listeners when the uneditable field is added to the document. Also sets up lorem ipsum text.

.exitDocument()

Destroy listeners when the field is removed from the document.

.getElement()

Returns the uneditable field element if the field is not yet editable (equivalent to EditableField.getOriginalElement()), and the editable DOM element if the field is currently editable (equivalent to EditableField.getElement()).

returns {Element}
The element containing the editable field contents.

.getFieldObject()

returns {goog.editor.Field}
The field.

.getOriginalDomHelper()

returns {goog.dom.DomHelper}
The dom helper of the uneditable element.

.isDisposed()

Inherited from goog.Disposable .

returns {boolean}
Whether the object has been disposed of.

.registerDisposable(disposable)

Inherited from goog.Disposable .

Associates a disposable object with this object so that they will be disposed together.

disposable {goog.disposable.IDisposable}
that will be disposed when this object is disposed.