EditorState.sliceDoc method
EditorState › sliceDoc
Official
Return the given range of the document as a string.Signature:
sliceDoc(from?: number, to?: number): stringParameters:
| Parameter | Type | Description |
|---|---|---|
| from? | number | The start position. |
| to? | number | The end position. |
Returns: string — The document slice.