1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-01-18 22:08:18 +01:00

Small docs changes (#3279)

* Small docs changes

Fixes a couple of small typos in the plugins documentation.

* Update 07-plugins.md
This commit is contained in:
Ryan Gurney 2019-12-09 10:16:50 -08:00 committed by Ian Storm Taylor
parent bf5cd700ca
commit 1141f59f4f

View File

@ -14,7 +14,7 @@ const withImages = editor => {
if (command.type === 'insert_image') {
const { url } = command
const element = { type: 'image', url, children: [{ text: '' }] }
Editor.insertNodes(editor)
Editor.insertNodes(editor, element)
} else {
exec(command)
}
@ -68,4 +68,4 @@ export const MyElement = {
}
```
Then you can use `MySelect` everywhere and have access to all your helpers in one place.
Then you can use `MyElement` everywhere and have access to all your helpers in one place.