diff --git a/apps/common/main/resources/img/toolbar/1.5x/big/btn-audio.png b/apps/common/main/resources/img/toolbar/1.5x/big/btn-audio.png new file mode 100644 index 000000000..50ccbacdc Binary files /dev/null and b/apps/common/main/resources/img/toolbar/1.5x/big/btn-audio.png differ diff --git a/apps/common/main/resources/img/toolbar/1.5x/big/btn-video.png b/apps/common/main/resources/img/toolbar/1.5x/big/btn-video.png new file mode 100644 index 000000000..544d7ea4a Binary files /dev/null and b/apps/common/main/resources/img/toolbar/1.5x/big/btn-video.png differ diff --git a/apps/common/main/resources/img/toolbar/1x/big/btn-audio.png b/apps/common/main/resources/img/toolbar/1x/big/btn-audio.png new file mode 100644 index 000000000..dbd36e819 Binary files /dev/null and b/apps/common/main/resources/img/toolbar/1x/big/btn-audio.png differ diff --git a/apps/common/main/resources/img/toolbar/1x/big/btn-video.png b/apps/common/main/resources/img/toolbar/1x/big/btn-video.png new file mode 100644 index 000000000..13f5d8a77 Binary files /dev/null and b/apps/common/main/resources/img/toolbar/1x/big/btn-video.png differ diff --git a/apps/common/main/resources/img/toolbar/2x/big/btn-audio.png b/apps/common/main/resources/img/toolbar/2x/big/btn-audio.png new file mode 100644 index 000000000..6eeea5c8a Binary files /dev/null and b/apps/common/main/resources/img/toolbar/2x/big/btn-audio.png differ diff --git a/apps/common/main/resources/img/toolbar/2x/big/btn-video.png b/apps/common/main/resources/img/toolbar/2x/big/btn-video.png new file mode 100644 index 000000000..a5044fee8 Binary files /dev/null and b/apps/common/main/resources/img/toolbar/2x/big/btn-video.png differ diff --git a/apps/presentationeditor/main/app/controller/Toolbar.js b/apps/presentationeditor/main/app/controller/Toolbar.js index 1314ae1c3..7635ab778 100644 --- a/apps/presentationeditor/main/app/controller/Toolbar.js +++ b/apps/presentationeditor/main/app/controller/Toolbar.js @@ -316,6 +316,8 @@ define([ toolbar.btnInsDateTime.on('click', _.bind(this.onEditHeaderClick, this, 'datetime')); toolbar.btnInsSlideNum.on('click', _.bind(this.onEditHeaderClick, this, 'slidenum')); Common.Gateway.on('insertimage', _.bind(this.insertImage, this)); + toolbar.btnInsAudio && toolbar.btnInsAudio.on('click', _.bind(this.onAddAudio, this)); + toolbar.btnInsVideo && toolbar.btnInsVideo.on('click', _.bind(this.onAddVideo, this)); this.onSetupCopyStyleButton(); }, @@ -639,7 +641,7 @@ define([ this.toolbar.btnShapeArrange, this.toolbar.btnSlideSize, this.toolbar.listTheme, this.toolbar.btnEditHeader, this.toolbar.btnInsDateTime, this.toolbar.btnInsSlideNum ]}); this.toolbar.lockToolbar(PE.enumLock.noSlides, this._state.no_slides, - { array: this.toolbar.btnsInsertImage.concat(this.toolbar.btnsInsertText, this.toolbar.btnsInsertShape, this.toolbar.btnInsertEquation, this.toolbar.btnInsertTextArt) }); + { array: this.toolbar.btnsInsertImage.concat(this.toolbar.btnsInsertText, this.toolbar.btnsInsertShape, this.toolbar.btnInsertEquation, this.toolbar.btnInsertTextArt, this.toolbar.btnInsAudio, this.toolbar.btnInsVideo) }); if (this.btnsComment) this.toolbar.lockToolbar(PE.enumLock.noSlides, this._state.no_slides, { array: this.btnsComment }); } @@ -2228,6 +2230,14 @@ define([ this._state.lang = langId; }, + onAddAudio: function() { + this.api && this.api.asc_AddAudio(); + }, + + onAddVideo: function() { + this.api && this.api.asc_AddVideo(); + }, + textEmptyImgUrl : 'You need to specify image URL.', textWarning : 'Warning', textFontSizeErr : 'The entered value must be more than 0', diff --git a/apps/presentationeditor/main/app/template/Toolbar.template b/apps/presentationeditor/main/app/template/Toolbar.template index 4d5e1c3d2..56b59459a 100644 --- a/apps/presentationeditor/main/app/template/Toolbar.template +++ b/apps/presentationeditor/main/app/template/Toolbar.template @@ -131,6 +131,11 @@ +
+