From 1258a742057e4b7f1b4d31782e40ed3c0c9759a8 Mon Sep 17 00:00:00 2001 From: Sunny Hirai Date: Mon, 29 Mar 2021 00:45:18 -0700 Subject: [PATCH] Move createEditor method in the Editor documentation where one would expect it --- docs/api/editor.md | 8 ++++++++ docs/api/miscellaneous.md | 4 ---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/api/editor.md b/docs/api/editor.md index 205f49f38..ad2e804c7 100644 --- a/docs/api/editor.md +++ b/docs/api/editor.md @@ -30,6 +30,14 @@ interface Editor { } ``` +## Instantiation methods + +###### `createEditor(): Editor` + +Note: This method is imported directly from Slate and is not part of the Editor object. + +Creates a new, empty `Editor` object. + ## Static methods ###### `Editor.above(editor: Editor, options?): NodeEntry | undefined` diff --git a/docs/api/miscellaneous.md b/docs/api/miscellaneous.md index e646db09d..12185dd8f 100644 --- a/docs/api/miscellaneous.md +++ b/docs/api/miscellaneous.md @@ -1,9 +1,5 @@ # Miscellaneous -## createEditor - -`createEditor(): Editor` creates a new, empty `Editor` object. - ## Operation `Operation` objects define the low-level instructions that Slate editors use to apply changes to their internal state. Representing all changes as operations is what allows Slate editors to easily implement history, collaboration, and other features.