From 1141f59f4f9b1f9158e9b96e19bf11ef9fb3dbce Mon Sep 17 00:00:00 2001 From: Ryan Gurney Date: Mon, 9 Dec 2019 10:16:50 -0800 Subject: [PATCH] Small docs changes (#3279) * Small docs changes Fixes a couple of small typos in the plugins documentation. * Update 07-plugins.md --- docs/concepts/07-plugins.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.