From f93ee4e4b679373502c30e006f508c1832575d3c Mon Sep 17 00:00:00 2001 From: ammarahm-ed Date: Sat, 30 Oct 2021 14:27:59 +0500 Subject: [PATCH] fix upload/download progress not working --- apps/mobile/src/provider/stores.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/mobile/src/provider/stores.ts b/apps/mobile/src/provider/stores.ts index e7852c846..8802b9a47 100644 --- a/apps/mobile/src/provider/stores.ts +++ b/apps/mobile/src/provider/stores.ts @@ -191,7 +191,7 @@ export const useAttachmentStore = create((set, get) => ({ tiny.call(EditorWebView, ` (function() { let progress = ${JSON.stringify(progress)} - tinymce.activeEditor.execCommand("mceUpdateAttachmentProgress",progress); + tinymce.activeEditor._updateAttachmentProgress("mceUpdateAttachmentProgress",progress); })()`); set({ progress: { ..._p } }); },