1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-12 02:03:59 +02:00

Add links in SlateHistory main docs

This commit is contained in:
Sunny Hirai
2023-04-11 23:16:56 -07:00
parent 72d2d84b85
commit 0861663a5c

View File

@@ -12,10 +12,10 @@ When used with `withReact`, `withHistory` should be applied inside. For example:
const [editor] = useState(() => withReact(withHistory(createEditor())))
```
## `HistoryEditor`
## [`HistoryEditor`](../history/history-editor.md)
`HistoryEditor` is the Editor with history related methods and the `History` object property. It also contains static helpers for history-enabled editors.
## `History`
## [`History`](../history/history.md)
`History` objects accessed at `editor.history` on a `HistoryEditor` holds all of the operations that are applied to a value, so they can be undone or redone as necessary.