Ver Fonte

fix: the position of tinymce upload image is wrong (#1015)

Lowell há 3 anos atrás
pai
commit
2fd0fd281e
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      src/components/Tinymce/src/Editor.vue

+ 2 - 1
src/components/Tinymce/src/Editor.vue

@@ -278,8 +278,9 @@
         if (!editor) {
           return;
         }
+        editor.execCommand('mceInsertContent', false, getUploadingImgName(name));
         const content = editor?.getContent() ?? '';
-        setValue(editor, `${content}\n${getUploadingImgName(name)}`);
+        setValue(editor, content);
       }
 
       function handleDone(name: string, url: string) {