docs: update link demo, fix #1564
This commit is contained in:
@@ -53,7 +53,12 @@ export default {
|
||||
setLink() {
|
||||
const url = window.prompt('URL')
|
||||
|
||||
this.editor.chain().focus().setLink({ href: url }).run()
|
||||
this.editor
|
||||
.chain()
|
||||
.focus()
|
||||
.extendMarkRange('link')
|
||||
.setLink({ href: url })
|
||||
.run()
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user