Skip to content

API Documentation

Lukáš Rada edited this page Jul 21, 2018 · 3 revisions

Serialization

rangee.serialize(range: Range): string

Returns serialized, compressed and encoded representation of Range object.

rangee.serializeAtomic(range: Range): string

Returns serialized, compressed and encoded representation of created Range objects. The Range object represents an atomic value of range which could be serialized and deserialized back only as a non-empty text node of HTML.

Deserialization

rangee.deserialize(serializedRange: string): Range

Returns desrialized Range object.

rangee.deserializeAtomic(serializedRanges: string): Range[]

Returns deserialized Range objects of non-empty text nodes of original range.