mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-25 02:58:43 +08:00
fix: the position of tinymce upload image is wrong (#1015)
This commit is contained in:
parent
be2d11d5d3
commit
2fd0fd281e
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user