fix upload/download progress not working

This commit is contained in:
ammarahm-ed
2021-10-30 14:27:59 +05:00
parent 1f748a8228
commit f93ee4e4b6

View File

@@ -191,7 +191,7 @@ export const useAttachmentStore = create<AttachmentStore>((set, get) => ({
tiny.call(EditorWebView, `
(function() {
let progress = ${JSON.stringify(progress)}
tinymce.activeEditor.execCommand("mceUpdateAttachmentProgress",progress);
tinymce.activeEditor._updateAttachmentProgress("mceUpdateAttachmentProgress",progress);
})()`);
set({ progress: { ..._p } });
},