From 6080cf6b85dd10bed119742f3add153c81f8331d Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 9 Apr 2024 17:11:08 +0300 Subject: [PATCH] Send event object to plugins when open context menu --- apps/documenteditor/main/app/controller/DocumentHolder.js | 2 +- apps/pdfeditor/main/app/controller/DocumentHolder.js | 2 +- apps/presentationeditor/main/app/controller/DocumentHolder.js | 2 +- apps/spreadsheeteditor/main/app/controller/DocumentHolder.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/documenteditor/main/app/controller/DocumentHolder.js b/apps/documenteditor/main/app/controller/DocumentHolder.js index dd6d84316f..2438cd179f 100644 --- a/apps/documenteditor/main/app/controller/DocumentHolder.js +++ b/apps/documenteditor/main/app/controller/DocumentHolder.js @@ -497,7 +497,7 @@ define([ }, 10); me.documentHolder.currentMenu = menu; - me.api.onPluginContextMenuShow && me.api.onPluginContextMenuShow(); + me.api.onPluginContextMenuShow && me.api.onPluginContextMenuShow(event); } }, diff --git a/apps/pdfeditor/main/app/controller/DocumentHolder.js b/apps/pdfeditor/main/app/controller/DocumentHolder.js index 11e98bd9e0..c95d75d212 100644 --- a/apps/pdfeditor/main/app/controller/DocumentHolder.js +++ b/apps/pdfeditor/main/app/controller/DocumentHolder.js @@ -255,7 +255,7 @@ define([ }, 10); me.documentHolder.currentMenu = menu; - me.api.onPluginContextMenuShow && me.api.onPluginContextMenuShow(); + me.api.onPluginContextMenuShow && me.api.onPluginContextMenuShow(event); } }, diff --git a/apps/presentationeditor/main/app/controller/DocumentHolder.js b/apps/presentationeditor/main/app/controller/DocumentHolder.js index 2d0e281a31..043d8e8423 100644 --- a/apps/presentationeditor/main/app/controller/DocumentHolder.js +++ b/apps/presentationeditor/main/app/controller/DocumentHolder.js @@ -506,7 +506,7 @@ define([ }, 10); me.documentHolder.currentMenu = menu; - me.api.onPluginContextMenuShow && me.api.onPluginContextMenuShow(); + me.api.onPluginContextMenuShow && me.api.onPluginContextMenuShow(event); } }, diff --git a/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js b/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js index 159a1f5e62..f7c936e9b4 100644 --- a/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js +++ b/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js @@ -3174,7 +3174,7 @@ define([ menu.show(); me.currentMenu = menu; - (type!==Asc.c_oAscContextMenuTypes.changeSeries) && me.api.onPluginContextMenuShow && me.api.onPluginContextMenuShow(); + (type!==Asc.c_oAscContextMenuTypes.changeSeries) && me.api.onPluginContextMenuShow && me.api.onPluginContextMenuShow(event); } },