0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2024-12-22 07:13:08 -05:00

Add missing attributes documentation for insertImage

This commit is contained in:
James Simpson 2016-12-29 17:30:21 -06:00 committed by GitHub
parent 40618c9291
commit 048b792bad

View file

@ -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 `<img>` 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.