add image command

This commit is contained in:
Philipp Kühn
2020-11-18 12:28:08 +01:00
parent 9a376a66e6
commit e526c788c9
2 changed files with 5 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ export default {
addImage() {
const url = window.prompt('URL')
this.editor.chain().focus().image({ src: url }).run()
this.editor.chain().focus().setImage({ src: url }).run()
},
},