CKEditor 4 Documentation

CKEDITOR.dom.rangeList

Hierarchy

Array
CKEDITOR.dom.rangeList

Files

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

Defined By

Methods

CKEDITOR.dom.rangeList
view source
new( [ranges] ) : CKEDITOR.dom.rangeList
Creates a rangeList class instance. ...

Creates a rangeList class instance.

Parameters

  • ranges : CKEDITOR.dom.range/CKEDITOR.dom.range[] (optional)

    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

CKEDITOR.dom.rangeList
view source
( [serializable] ) : Array
Create bookmarks for all ranges. ...

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

Parameters

Returns

  • Array

    Array of bookmarks.

CKEDITOR.dom.rangeList
view source
( [normalized] ) : Array
Create "unobtrusive" bookmarks for all ranges. ...

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

Parameters

Returns

  • Array

    Array of bookmarks.

Creates an instance of the rangeList iterator, it should be used only when the ranges processing could be DOM intrusi...

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

CKEDITOR.dom.rangeList
view source
( bookmarks )
Move each range in the list to the position specified by a list of 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.