CKEDITOR.dom.rangeList
Represents a list os CKEDITOR.dom.range objects, which can be easily iterated sequentially.
Filtering
Methods
-
constructor( [ ranges ] ) → rangeList
Creates a rangeList class instance.
-
createBookmarks( [ serializable ] ) → Array
Create bookmarks for all ranges. See CKEDITOR.dom.range.createBookmark.
Parameters
[ serializable ] : Boolean
See CKEDITOR.dom.range.createBookmark.
Defaults to
false
Returns
Array
Array of bookmarks.
-
createBookmarks2( [ normalized ] ) → Array
Create "unobtrusive" bookmarks for all ranges. See CKEDITOR.dom.range.createBookmark2.
Parameters
[ normalized ] : Boolean
See CKEDITOR.dom.range.createBookmark2.
Defaults to
false
Returns
Array
Array of bookmarks.
-
Creates an instance of the rangeList iterator, it should be used only when the ranges processing could be DOM intrusive, which means it may pollute and break other ranges in this list. Otherwise, it's enough to just iterate over this array in a for loop.
Returns
-
moveToBookmarks( bookmarks )
Move each range in the list to the position specified by a list of bookmarks.
Parameters
bookmarks : Array
The list of bookmarks, each one matching a range in the list.