goog.editor.range.NormalizedCaretRange_
Classgoog.editor.range.NormalizedCaretRange_
> goog.dom.SavedCaretRange
> goog.dom.SavedRange
> goog.Disposable
.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
}
opt_scope
{Object
=}
.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.
void
}
.disposeInternal()
[protected]Inherited from goog.dom.SavedCaretRange
.
Dispose the saved range and remove the carets from the DOM.
.getCaret(start)
Inherited from goog.dom.SavedCaretRange
.
Gets carets.
start
{boolean
}
Element
}
.getDisposed
[deprecated]Deprecated. Use {@link #isDisposed} instead.
Inherited from goog.Disposable
.
boolean
}
.isDisposed()
Inherited from goog.Disposable
.
boolean
}
.registerDisposable(disposable)
Inherited from goog.Disposable
.
Associates a disposable object with this object so that they will be disposed together.
disposable
{goog.disposable.IDisposable
}
.removeCarets(opt_range)
Normalizes text nodes whenever carets are removed from the document.
opt_range
{goog.dom.AbstractRange
=}
goog.dom.AbstractRange
|undefined
}
.restore(opt_stayAlive)
Inherited from goog.dom.SavedRange
.
Restores the range and by default disposes of the saved copy. Take note: this means the by default SavedRange objects are single use objects.
opt_stayAlive
{boolean
=}
goog.dom.AbstractRange
}
.restoreInternal()
[protected]Inherited from goog.dom.SavedCaretRange
.
Reconstruct the selection from the given saved range. Removes carets after restoring the selection. If restore does not dispose this saved range, it may only be restored a second time if innerHTML or some other mechanism is used to restore the carets to the dom.
goog.dom.AbstractRange
?}
.setRestorationDocument(doc)
Inherited from goog.dom.SavedCaretRange
.
Sets the document where the range will be restored.
doc
{!Document
}
.toAbstractRange()
Inherited from goog.dom.SavedCaretRange
.
Gets the range that this SavedCaretRage represents, without selecting it or removing the carets from the DOM.
goog.dom.AbstractRange
?}