diff --git a/components/Editor/Editor.vue b/components/Editor/Editor.vue index d99bade94..b59ca376d 100644 --- a/components/Editor/Editor.vue +++ b/components/Editor/Editor.vue @@ -257,11 +257,15 @@ export default { setLinkUrl(command, url) { const links = linkify().match(url) if (links) { + // add valid link command({ href: links.pop().url }) this.hideLinkMenu() this.editor.focus() + } else if (!url) { + // remove link + command({ href: null }) } } }