CKEDITOR.dom.rangeList
Represents a list os CKEDITOR.dom.range objects, which can be easily iterated sequentially.
Filtering
Methods
constructor( [ ranges ] ) → rangeListCKEDITOR.dom.rangeList#constructorCreates 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 ] ) → ArrayCKEDITOR.dom.rangeList#createBookmarksCreate bookmarks for all ranges. See CKEDITOR.dom.range.createBookmark.
Parameters
[ serializable ] : BooleanSee CKEDITOR.dom.range.createBookmark.
Defaults to
falseReturns
ArrayArray of bookmarks.
createBookmarks2( [ normalized ] ) → ArrayCKEDITOR.dom.rangeList#createBookmarks2Create "unobtrusive" bookmarks for all ranges. See CKEDITOR.dom.range.createBookmark2.
Parameters
[ normalized ] : BooleanSee CKEDITOR.dom.range.createBookmark2.
Defaults to
falseReturns
ArrayArray of bookmarks.
createIterator() → rangeListIteratorCKEDITOR.dom.rangeList#createIteratorCreates 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#moveToBookmarksMove each range in the list to the position specified by a list of bookmarks.
Parameters
bookmarks : ArrayThe list of bookmarks, each one matching a range in the list.