search

goog.dom.SavedCaretRange

Provided By
Extends
All Implemented Interfaces
All Known Direct Subclasses

A struct for holding context about saved selections. This can be used to preserve the selection and restore while the DOM is manipulated, or through an asynchronous call. Use goog.dom.Range factory methods to obtain an goog.dom.AbstractRange instance, and use goog.dom.AbstractRange#saveUsingCarets to obtain a SavedCaretRange. For editor ranges under content-editable elements or design-mode iframes, prefer using goog.editor.range.saveUsingNormalizedCarets.

new SavedCaretRange( range )

Parameters
range(goog.dom.AbstractRange|null)

The range being saved.

Instance Methods

Instance Properties

Static Functions