[DE][SSE] Loading text arts and equations when editors are opened with compact toolbar.

This commit is contained in:
Julia Radzhabova 2016-08-23 11:50:19 +03:00
parent 9f3c4cc909
commit 880fad0c9f
3 changed files with 14 additions and 1 deletions

View file

@ -2189,6 +2189,8 @@ define([
}, },
fillEquations: function() { fillEquations: function() {
if (!this.toolbar.btnInsertEquation.rendered) return;
var me = this, equationsStore = this.getApplication().getCollection('EquationGroups'); var me = this, equationsStore = this.getApplication().getCollection('EquationGroups');
me.equationPickers = []; me.equationPickers = [];
@ -2380,8 +2382,9 @@ define([
}, },
fillTextArt: function() { fillTextArt: function() {
var me = this; if (!this.toolbar.btnInsertText.rendered) return;
var me = this;
if (this.toolbar.mnuTextArtPicker) { if (this.toolbar.mnuTextArtPicker) {
var models = this.getApplication().getCollection('Common.Collections.TextArt').models, var models = this.getApplication().getCollection('Common.Collections.TextArt').models,
count = this.toolbar.mnuTextArtPicker.store.length; count = this.toolbar.mnuTextArtPicker.store.length;

View file

@ -1557,6 +1557,11 @@ define([
if (me.listStyles.menuPicker.store.length > 0 && listStylesVisible){ if (me.listStyles.menuPicker.store.length > 0 && listStylesVisible){
me.listStyles.fillComboView(me.listStyles.menuPicker.getSelectedRec(), true); me.listStyles.fillComboView(me.listStyles.menuPicker.getSelectedRec(), true);
} }
if (me.btnInsertText.rendered)
DE.getController('Toolbar').fillTextArt();
if (me.btnInsertEquation.rendered)
DE.getController('Toolbar').fillEquations();
}, 100); }, 100);
} }

View file

@ -1256,6 +1256,9 @@ define([
if (me.toolbar.listStyles.menuPicker.store.length > 0 && listStylesVisible){ if (me.toolbar.listStyles.menuPicker.store.length > 0 && listStylesVisible){
me.toolbar.listStyles.fillComboView(me.toolbar.listStyles.menuPicker.getSelectedRec(), true); me.toolbar.listStyles.fillComboView(me.toolbar.listStyles.menuPicker.getSelectedRec(), true);
} }
if (me.toolbar.btnInsertText.rendered)
SSE.getController('Toolbar').fillTextArt();
}, 100); }, 100);
} }
@ -2002,6 +2005,8 @@ define([
}, },
fillTextArt: function() { fillTextArt: function() {
if (!this.toolbar.btnInsertText.rendered) return;
var me = this; var me = this;
if (this.toolbar.mnuTextArtPicker) { if (this.toolbar.mnuTextArtPicker) {