Commit 2fd0fd281e65d6d2551478c5f19250347dc14062
Committed by
GitHub
1 parent
be2d11d5
fix: the position of tinymce upload image is wrong (#1015)
Showing
1 changed file
with
2 additions
and
1 deletions
src/components/Tinymce/src/Editor.vue
@@ -278,8 +278,9 @@ | @@ -278,8 +278,9 @@ | ||
278 | if (!editor) { | 278 | if (!editor) { |
279 | return; | 279 | return; |
280 | } | 280 | } |
281 | + editor.execCommand('mceInsertContent', false, getUploadingImgName(name)); | ||
281 | const content = editor?.getContent() ?? ''; | 282 | const content = editor?.getContent() ?? ''; |
282 | - setValue(editor, `${content}\n${getUploadingImgName(name)}`); | 283 | + setValue(editor, content); |
283 | } | 284 | } |
284 | 285 | ||
285 | function handleDone(name: string, url: string) { | 286 | function handleDone(name: string, url: string) { |