Unverified 提交 2fd0fd28 作者: Lowell 提交者: GitHub

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

上级 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 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论