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:
parent
40618c9291
commit
048b792bad
1 changed files with 2 additions and 1 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in a new issue