Commit d6f2176d authored by NGPixel's avatar NGPixel

fix: insert file for visual editor

parent 19e4ab69
...@@ -69,7 +69,6 @@ export default { ...@@ -69,7 +69,6 @@ export default {
}, 300)) }, 300))
this.$root.$on('editorInsert', opts => { this.$root.$on('editorInsert', opts => {
console.info(opts)
switch (opts.kind) { switch (opts.kind) {
case 'IMAGE': case 'IMAGE':
this.editor.execute('imageInsert', { this.editor.execute('imageInsert', {
...@@ -77,8 +76,8 @@ export default { ...@@ -77,8 +76,8 @@ export default {
}) })
break break
case 'BINARY': case 'BINARY':
this.insertAtCursor({ this.editor.execute('link', opts.path, {
content: `[${opts.text}](${opts.path})` linkIsDownloadable: true
}) })
break break
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment