Skip to content

Commit

Permalink
fix: the position of tinymce upload image is wrong (#1015)
Browse files Browse the repository at this point in the history
  • Loading branch information
weilence authored Aug 1, 2021
1 parent be2d11d commit 2fd0fd2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Tinymce/src/Editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,9 @@
if (!editor) {
return;
}
editor.execCommand('mceInsertContent', false, getUploadingImgName(name));
const content = editor?.getContent() ?? '';
setValue(editor, `${content}\n${getUploadingImgName(name)}`);
setValue(editor, content);
}
function handleDone(name: string, url: string) {
Expand Down

0 comments on commit 2fd0fd2

Please sign in to comment.