1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-09-01 19:22:35 +02:00

Move createEditor method in the Editor documentation where one would expect it

This commit is contained in:
Sunny Hirai
2021-03-29 00:45:18 -07:00
parent b503d732da
commit 1258a74205
2 changed files with 8 additions and 4 deletions

View File

@@ -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<T extends Ancestor>(editor: Editor, options?): NodeEntry | undefined`

View File

@@ -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.