1
0
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:
Ian Storm Taylor 2016-07-12 11:17:59 -07:00
parent 40a3c901b2
commit 0d603c3293
2 changed files with 4 additions and 1 deletions

View File

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

View File

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