diff --git a/apps/presentationeditor/main/app/controller/RightMenu.js b/apps/presentationeditor/main/app/controller/RightMenu.js index 599d6f25d..d082dd879 100644 --- a/apps/presentationeditor/main/app/controller/RightMenu.js +++ b/apps/presentationeditor/main/app/controller/RightMenu.js @@ -292,10 +292,18 @@ define([ onInsertShape: function() { // this._settings[Common.Utils.documentSettingsType.Shape].needShow = true; + var idx = this._priorityArr.indexOf(Common.Utils.documentSettingsType.Shape); + if (idx>=0) + this._priorityArr.splice(idx, 1); + this._priorityArr.unshift(Common.Utils.documentSettingsType.Shape); }, onInsertTextArt: function() { // this._settings[Common.Utils.documentSettingsType.TextArt].needShow = true; + var idx = this._priorityArr.indexOf(Common.Utils.documentSettingsType.TextArt); + if (idx>=0) + this._priorityArr.splice(idx, 1); + this._priorityArr.unshift(Common.Utils.documentSettingsType.TextArt); }, UpdateThemeColors: function() {