From 048b792badc281569c3ea308d6a876db8713633f Mon Sep 17 00:00:00 2001 From: James Simpson Date: Thu, 29 Dec 2016 17:30:21 -0600 Subject: [PATCH] Add missing attributes documentation for insertImage --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4625543..fe53eef 100644 --- a/README.md +++ b/README.md @@ -183,9 +183,10 @@ Returns the text currently selected in the editor. Inserts an image at the current cursor location. -The method takes one argument: +The method takes two arguments: * **src**: The source path for the image. +* **attributes**: (optional) An object containing other attributes to set on the `` node. e.g. `{ class: 'class-name' }`. Any `src` attribute will be overwritten by the url given as the first argument. Returns a reference to the newly inserted image element.