fix: 이미지 안올라가는 버그 수정

This commit is contained in:
2022-03-23 01:01:47 +09:00
parent 40b1a9fbdf
commit eb03f34a7e
+2 -2
View File
@@ -430,7 +430,7 @@ const compoment = defineComponent({
} }
const imagePath = imageResult.path; const imagePath = imageResult.path;
this.editor.chain().focus().setImage({ src: imagePath }).run(); this.editor.chain().focus().setImageEx({ src: imagePath }).run();
}, },
addImageLink(bvModalEvt: Event) { addImageLink(bvModalEvt: Event) {
if (!this.imageLink) { if (!this.imageLink) {
@@ -438,7 +438,7 @@ const compoment = defineComponent({
bvModalEvt.preventDefault(); bvModalEvt.preventDefault();
return false; return false;
} }
this.editor.chain().focus().setImage({ src: this.imageLink }).run(); this.editor.chain().focus().setImageEx({ src: this.imageLink }).run();
}, },
resetModal() { resetModal() {
this.imageLink = ""; this.imageLink = "";