mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-10 17:24:02 +02:00
update editor reference
This commit is contained in:
@@ -29,10 +29,11 @@ The top-level React component that renders the Slate editor itself.
|
|||||||
- [`onKeyDown`](#onkeydown)
|
- [`onKeyDown`](#onkeydown)
|
||||||
- [`onPaste`](#onpaste)
|
- [`onPaste`](#onpaste)
|
||||||
- [`onSelect`](#onselect)
|
- [`onSelect`](#onselect)
|
||||||
- [`renderDecorations`](#renderdecorations)
|
- [`schema`](#schema)
|
||||||
- [`renderMark`](#rendermark)
|
|
||||||
- [`renderNode`](#rendernode)
|
|
||||||
- [Methods](#methods)
|
- [Methods](#methods)
|
||||||
|
- [`blur`](#blur)
|
||||||
|
- [`focus`](#focus)
|
||||||
|
- [`getSchema()`](#getschema)
|
||||||
- [`getState()`](#getstate)
|
- [`getState()`](#getstate)
|
||||||
- [`onChange(state)`](#onchange)
|
- [`onChange(state)`](#onchange)
|
||||||
|
|
||||||
@@ -161,19 +162,32 @@ const plugins = [
|
|||||||
### `onKeyDown`
|
### `onKeyDown`
|
||||||
### `onPaste`
|
### `onPaste`
|
||||||
### `onSelect`
|
### `onSelect`
|
||||||
### `renderDecorations`
|
### `schema`
|
||||||
### `renderMark`
|
|
||||||
### `renderNode`
|
|
||||||
|
|
||||||
To see how these properties behave, check out the [Plugins reference](../plugins/plugins.md).
|
To see how these properties behave, check out the [Plugins reference](../plugins/plugins.md).
|
||||||
|
|
||||||
|
|
||||||
## Methods
|
## Methods
|
||||||
|
|
||||||
|
### `blur`
|
||||||
|
`blur() => Void`
|
||||||
|
|
||||||
|
Programmatically blur the editor.
|
||||||
|
|
||||||
|
### `focus`
|
||||||
|
`blur() => Void`
|
||||||
|
|
||||||
|
Programmatically focus the editor.
|
||||||
|
|
||||||
|
### `getSchema`
|
||||||
|
`getSchema() => Schema`
|
||||||
|
|
||||||
|
Return the editor's current schema.
|
||||||
|
|
||||||
### `getState`
|
### `getState`
|
||||||
`getState() => State`
|
`getState() => State`
|
||||||
|
|
||||||
Return the editor's current internal state.
|
Return the editor's current state.
|
||||||
|
|
||||||
### `onChange`
|
### `onChange`
|
||||||
`onChange(state: State) => Void`
|
`onChange(state: State) => Void`
|
||||||
|
Reference in New Issue
Block a user