CKEDITOR.dom.rangeList
Represents a list os CKEDITOR.dom.range objects, which can be easily iterated sequentially.
Filtering
Methods
-
constructor( [ ranges ] ) → rangeList
CKEDITOR.dom.rangeList#constructor
Creates a rangeList class instance.
Parameters
[ ranges ] : range | range[]
The ranges contained on this list. Note that, if an array of ranges is specified, the range sequence should match its DOM order. This class will not help to sort them.
Returns
rangeList
-
createBookmarks( [ serializable ] ) → Array
CKEDITOR.dom.rangeList#createBookmarks
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
CKEDITOR.dom.rangeList#createBookmarks2
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.
-
createIterator() → rangeListIterator
CKEDITOR.dom.rangeList#createIterator
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
rangeListIterator
-
moveToBookmarks( bookmarks )
CKEDITOR.dom.rangeList#moveToBookmarks
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.