mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-01-29 19:27:43 +01:00
update plugins reference
This commit is contained in:
parent
40a3c901b2
commit
0d603c3293
@ -85,6 +85,8 @@ If you're using Slate for the first time, check out the [Getting Started](./docs
|
||||
- Text
|
||||
- Transform
|
||||
- Plugins
|
||||
- [Plugins](docs/reference/plugins/plugins.md)
|
||||
- [Core](docs/reference/plugins/core.md)
|
||||
|
||||
If even that's not enough, you can always [read the source itself](./lib), which is explained along with a handful of readme's.
|
||||
|
||||
|
@ -59,7 +59,8 @@ This handler is called when any key is pressed in the `contenteditable` element,
|
||||
|
||||
Make sure to `event.preventDefault()` if you do not want the default insertion behavior to occur! If no other plugin handles this event, it will be handled by the [Core plugin](./core.md).
|
||||
|
||||
#### `onPaste(event, paste, state, editor) => State || Void`
|
||||
### `onPaste`
|
||||
<code>(event, paste, state, editor) => State || Void</code>
|
||||
|
||||
This handler is called when the user pastes content into the `contenteditable` element. The event is already prevented by default, so you must define a state change to have any affect occur.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user