From 0861663a5c751c6af32a43fc49ce1cffb9b2b23f Mon Sep 17 00:00:00 2001 From: Sunny Hirai Date: Tue, 11 Apr 2023 23:16:56 -0700 Subject: [PATCH] Add links in SlateHistory main docs --- docs/libraries/slate-history.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/libraries/slate-history.md b/docs/libraries/slate-history.md index e2d6793fe..682543c3a 100644 --- a/docs/libraries/slate-history.md +++ b/docs/libraries/slate-history.md @@ -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.