diff --git a/docs/concepts/07-plugins.md b/docs/concepts/07-plugins.md index 2c636ea9b..3f02fe3c0 100644 --- a/docs/concepts/07-plugins.md +++ b/docs/concepts/07-plugins.md @@ -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.