Commit 2fd0fd281e65d6d2551478c5f19250347dc14062

Authored by Lowell
Committed by GitHub
1 parent be2d11d5

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

src/components/Tinymce/src/Editor.vue
... ... @@ -278,8 +278,9 @@
278 278 if (!editor) {
279 279 return;
280 280 }
  281 + editor.execCommand('mceInsertContent', false, getUploadingImgName(name));
281 282 const content = editor?.getContent() ?? '';
282   - setValue(editor, `${content}\n${getUploadingImgName(name)}`);
  283 + setValue(editor, content);
283 284 }
284 285  
285 286 function handleDone(name: string, url: string) {
... ...