RangeRef
RangeRef objects keep a specific range in a document synced over time as new operations are applied to the editor. You can access their property current at any time for the up-to-date Range value.
1
interface RangeRef {
2
current: Range | null
3
affinity: 'forward' | 'backward' | 'outward' | 'inward' | null
4
unref(): Range | null
5
}
Copied!

Static methods

Transform methods

RangeRef.transform(ref: RangeRef, op: Operation)

Transform the range refs current value by an op.
Last modified 6mo ago