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:
@@ -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`
|
||||
|
@@ -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.
|
||||
|
Reference in New Issue
Block a user