mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 02:29:58 +08:00
[SSE] Don't allow plugin to add items to header/footer/series menu
This commit is contained in:
@ -4618,7 +4618,8 @@ define([
|
||||
},
|
||||
|
||||
onPluginContextMenu: function(data) {
|
||||
if (data && data.length>0 && this.documentHolder && this.currentMenu && this.currentMenu.isVisible()){
|
||||
if (data && data.length>0 && this.documentHolder && this.currentMenu && (this.currentMenu !== this.documentHolder.copyPasteMenu) &&
|
||||
(this.currentMenu !== this.documentHolder.fillMenu) && this.currentMenu.isVisible()){
|
||||
this.documentHolder.updateCustomItems(this.currentMenu, data);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user