mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-28 23:59:25 +08:00
parent
6583edeb1f
commit
8f8450be62
@ -50,7 +50,7 @@ Image.configure({
|
||||
Makes the current node an image.
|
||||
|
||||
```js
|
||||
editor.commands.setImage({ src: 'https://example.com/foobar.png')
|
||||
editor.commands.setImage({ src: 'https://example.com/foobar.png' })
|
||||
editor.commands.setImage({ src: 'https://example.com/foobar.png', alt: 'A boring example image', title: 'An example' })
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user