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.