[PE] Fix context menu

This commit is contained in:
Julia Radzhabova
2024-12-14 00:01:15 +03:00
parent c833c24ec5
commit 00a0c7a6e7
2 changed files with 2 additions and 1 deletions

View File

@ -95,7 +95,6 @@ define([], function () {
Common.NotificationCenter.on('forms:image-select', _.bind(this.selectFormImage, this));// select from right pane
}
this.api.asc_registerCallback('onPluginContextMenu', _.bind(this.onPluginContextMenu, this));
this.documentHolder.setApi(this.api);
}
};

View File

@ -216,6 +216,7 @@ define([], function () {
me.mnuGuides = new Common.UI.MenuItem({
caption : me.textGuides,
menu : new Common.UI.Menu({
cls: 'shifted-right',
menuAlign: 'tl-tr',
items: [
{ caption: me.textShowGuides, value: 'show', checkable: true },
@ -232,6 +233,7 @@ define([], function () {
me.mnuGridlines = new Common.UI.MenuItem({
caption : me.textGridlines,
menu : new Common.UI.Menu({
cls: 'shifted-right',
menuAlign: 'tl-tr',
items: [
{ caption: me.textShowGridlines, value: 'show', checkable: true },