diff --git a/ayanova/src/components/wiki-control.vue b/ayanova/src/components/wiki-control.vue index 95457e96..7dbea616 100644 --- a/ayanova/src/components/wiki-control.vue +++ b/ayanova/src/components/wiki-control.vue @@ -753,7 +753,7 @@ export default { //![alttexthere](https://www.ayanova.com/images/AyaNovaIcon256.png "title text here (tooltip)") { this.imageMenu = false; - this.selectedImageAttachment = null; + let url = null; if (ex == 1) { //it's an attachment @@ -783,6 +783,7 @@ export default { } else { this.replaceSelectedText("![](" + url + ")"); } + this.selectedImageAttachment = null; } break; default: