diff --git a/apps/documenteditor/main/app/view/DocumentHolder.js b/apps/documenteditor/main/app/view/DocumentHolder.js index 7867707cf..580dd1ded 100644 --- a/apps/documenteditor/main/app/view/DocumentHolder.js +++ b/apps/documenteditor/main/app/view/DocumentHolder.js @@ -4061,7 +4061,7 @@ define([ }); menu.on('item:click', function(menu, item) { setTimeout(function(){ - me.api.asc_SelectContentControlListItem(item.value, me._listObj.get_InternalId()); + (item.value!==-1) && me.api.asc_SelectContentControlListItem(item.value, me._listObj.get_InternalId()); }, 1); }); @@ -4087,6 +4087,12 @@ define([ value : specProps.get_ItemValue(i) })); } + if (count<1) { + menu.addItem(new Common.UI.MenuItem({ + caption : this.txtEmpty, + value : -1 + })); + } } menuContainer.css({left: x, top : y}); @@ -4339,7 +4345,8 @@ define([ txtPrintSelection: 'Print Selection', textCells: 'Cells', textSeveral: 'Several Rows/Columns', - txtInsertCaption: 'Insert Caption' + txtInsertCaption: 'Insert Caption', + txtEmpty: '(Empty)' }, DE.Views.DocumentHolder || {})); }); \ No newline at end of file diff --git a/apps/documenteditor/main/locale/en.json b/apps/documenteditor/main/locale/en.json index d1b7a270b..e7d726aab 100644 --- a/apps/documenteditor/main/locale/en.json +++ b/apps/documenteditor/main/locale/en.json @@ -1377,6 +1377,7 @@ "DE.Views.DocumentHolder.txtUngroup": "Ungroup", "DE.Views.DocumentHolder.updateStyleText": "Update %1 style", "DE.Views.DocumentHolder.vertAlignText": "Vertical Alignment", + "DE.Views.DocumentHolder.txtEmpty": "(Empty)", "DE.Views.DropcapSettingsAdvanced.strBorders": "Borders & Fill", "DE.Views.DropcapSettingsAdvanced.strDropcap": "Drop Cap", "DE.Views.DropcapSettingsAdvanced.strMargins": "Margins",