From d6f2176de2235c789cf79b1e6d8a75ab748756c0 Mon Sep 17 00:00:00 2001 From: NGPixel Date: Sat, 16 Nov 2019 22:02:51 -0500 Subject: [PATCH] fix: insert file for visual editor --- client/components/editor/editor-ckeditor.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client/components/editor/editor-ckeditor.vue b/client/components/editor/editor-ckeditor.vue index 6ff852bb..6c5598a4 100644 --- a/client/components/editor/editor-ckeditor.vue +++ b/client/components/editor/editor-ckeditor.vue @@ -69,7 +69,6 @@ export default { }, 300)) this.$root.$on('editorInsert', opts => { - console.info(opts) switch (opts.kind) { case 'IMAGE': this.editor.execute('imageInsert', { @@ -77,8 +76,8 @@ export default { }) break case 'BINARY': - this.insertAtCursor({ - content: `[${opts.text}](${opts.path})` + this.editor.execute('link', opts.path, { + linkIsDownloadable: true }) break }