0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2025-01-03 05:00:13 -05:00

Merge pull request #257 from goldfire/master

Add missing attributes documentation for insertImage
This commit is contained in:
Neil Jenkins 2017-01-03 10:16:05 +11:00 committed by GitHub
commit 918e252500

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.