Unverified Commit 2fd0fd28 authored by Lowell's avatar Lowell Committed by GitHub

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

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