Browse Source

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

pull/1023/head
Lowell 5 years ago
committed by GitHub
parent
commit
2fd0fd281e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/components/Tinymce/src/Editor.vue

3
src/components/Tinymce/src/Editor.vue

@ -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) {

Loading…
Cancel
Save