diff --git a/apps/presentationeditor/main/app/controller/DocumentHolder.js b/apps/presentationeditor/main/app/controller/DocumentHolder.js index c042cfa8c..71141128d 100644 --- a/apps/presentationeditor/main/app/controller/DocumentHolder.js +++ b/apps/presentationeditor/main/app/controller/DocumentHolder.js @@ -333,8 +333,9 @@ define([ var command = message.data.command; var data = message.data.data; if (this.api) { - if (oleEditor.isEditMode()) - this.api.asc_editTableOleObject(data); + oleEditor.isEditMode() + ? this.api.asc_editTableOleObject(data) + : this.api.asc_addTableOleObject(data); } }, this)); oleEditor.on('hide', _.bind(function(cmp, message) { diff --git a/apps/presentationeditor/main/app/controller/Toolbar.js b/apps/presentationeditor/main/app/controller/Toolbar.js index a869ff4fb..163fa50f0 100644 --- a/apps/presentationeditor/main/app/controller/Toolbar.js +++ b/apps/presentationeditor/main/app/controller/Toolbar.js @@ -1686,6 +1686,13 @@ define([ Common.NotificationCenter.trigger('edit:complete', me.toolbar); } })).show(); + } else if (item.value == 'sse') { + var oleEditor = this.getApplication().getController('Common.Controllers.ExternalOleEditor').getView('Common.Views.ExternalOleEditor'); + if (oleEditor) { + oleEditor.setEditMode(false); + oleEditor.show(); + oleEditor.setOleData("empty"); + } } }, diff --git a/apps/presentationeditor/main/app/view/Toolbar.js b/apps/presentationeditor/main/app/view/Toolbar.js index 1e7558d0e..9690619b1 100644 --- a/apps/presentationeditor/main/app/view/Toolbar.js +++ b/apps/presentationeditor/main/app/view/Toolbar.js @@ -719,7 +719,8 @@ define([ cls: 'shifted-left', items: [ {template: _.template('
')}, - {caption: me.mniCustomTable, value: 'custom'} + {caption: me.mniCustomTable, value: 'custom'}, + {caption: me.mniInsertSSE, value: 'sse'} ] }), dataHint: '1', @@ -2029,7 +2030,8 @@ define([ tipMarkersFRhombus: 'Filled rhombus bullets', tipMarkersDash: 'Dash bullets', tipNone: 'None', - textTabView: 'View' + textTabView: 'View', + mniInsertSSE: 'Insert Spreadsheet' } }()), PE.Views.Toolbar || {})); }); \ No newline at end of file