Location References

API reference for location references in Slate.

Location references are objects that keep specific locations (paths, points, or ranges) in a document synced over time as new operations are applied to the editor.

PathRef

PathRef objects keep a specific path in a document synced over time. You can access their current property at any time for the up-to-date path value.

transform

Transforms the path ref's current value by an operation.

Parameters

Collapse all

    The path reference to transform.

    The operation to apply.

Parameters

Collapse all

    Properties:

PointRef

PointRef objects keep a specific point in a document synced over time. You can access their current property at any time for the up-to-date point value.

transform

Transforms the point ref's current value by an operation.

Parameters

Collapse all

    The point reference to transform.

    The operation to apply.

Parameters

Collapse all

    Properties:

RangeRef

RangeRef objects keep a specific range in a document synced over time. You can access their current property at any time for the up-to-date range value.

transform

Transforms the range ref's current value by an operation.

Parameters

Collapse all

    The range reference to transform.

    The operation to apply.

Parameters

Collapse all

    Properties: