mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-11 17:53:59 +02: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:
committed by
Ian Storm Taylor
parent
bf5cd700ca
commit
1141f59f4f
@@ -14,7 +14,7 @@ const withImages = editor => {
|
|||||||
if (command.type === 'insert_image') {
|
if (command.type === 'insert_image') {
|
||||||
const { url } = command
|
const { url } = command
|
||||||
const element = { type: 'image', url, children: [{ text: '' }] }
|
const element = { type: 'image', url, children: [{ text: '' }] }
|
||||||
Editor.insertNodes(editor)
|
Editor.insertNodes(editor, element)
|
||||||
} else {
|
} else {
|
||||||
exec(command)
|
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.
|
||||||
|
Reference in New Issue
Block a user