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