# CKEDITOR.dom.rangeList

class

Represents a list os CKEDITOR.dom.range objects, which can be easily iterated sequentially.

## Methods

• ### constructor( [ ranges ] ) → rangeListCKEDITOR.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 ] ) → ArrayCKEDITOR.dom.rangeList#createBookmarks

Create bookmarks for all ranges. See CKEDITOR.dom.range.createBookmark.

#### Parameters

[ serializable ] : Boolean

Defaults to false

#### Returns

Array

Array of bookmarks.

• ### createBookmarks2( [ normalized ] ) → ArrayCKEDITOR.dom.rangeList#createBookmarks2

Create "unobtrusive" bookmarks for all ranges. See CKEDITOR.dom.range.createBookmark2.

#### Parameters

[ normalized ] : Boolean

Defaults to false

#### Returns

Array

Array of bookmarks.

• ### createIterator() → rangeListIteratorCKEDITOR.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.