1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-18 21:21:21 +02:00
Files
slate/docs/api/locations/span.md
Doug Reeder 7d9d25e179 Adds clarification & examples to demystify Transforms. (#4653)
* Adds clarification & examples to demystify Transforms.

* Fleshes out documentation of NodeOptions for Transforms

* Update docs/concepts/04-transforms.md

Co-authored-by: Dylan Schiemann <dylan@dojotoolkit.org>

* Uses 'API' in the title of all API documents

Co-authored-by: Dylan Schiemann <dylan@dojotoolkit.org>
2021-11-16 02:20:43 -07:00

431 B

Span API

A Span is a low-level way to refer to a Range using Element as the end points instead of a Point which requires the use of leaf text nodes.

type Span = [Path, Path]

Static Methods

Check Methods

Span.isSpan(value: any) => value is Span

Check if a value implements the Span interface.