[DE] Add api parameter customization.plugins: hide plugins panel when false

This commit is contained in:
Julia Radzhabova 2020-05-21 23:07:41 +03:00
parent 5766138138
commit 10d596be29

View file

@ -151,6 +151,7 @@ define([
setApi: function(api) {
this.api = api;
if (!this.appOptions.customization || (this.appOptions.customization.plugins!==false)) {
this.api.asc_registerCallback("asc_onPluginShow", _.bind(this.onPluginShow, this));
this.api.asc_registerCallback("asc_onPluginClose", _.bind(this.onPluginClose, this));
this.api.asc_registerCallback("asc_onPluginResize", _.bind(this.onPluginResize, this));
@ -160,6 +161,7 @@ define([
this.api.asc_registerCallback('asc_onPluginsInit', _.bind(this.onPluginsInit, this));
this.loadPlugins();
}
return this;
},