[PDFE] Fix textures

This commit is contained in:
Julia Radzhabova
2024-03-22 13:27:50 +03:00
parent 0b83fe23a0
commit 174dfd3a5f
2 changed files with 8 additions and 0 deletions

View File

@ -337,6 +337,7 @@ define([
if (this.mode.canPDFEdit) {
this.api.asc_registerCallback('asc_onMathTypes', _.bind(this.onApiMathTypes, this));
this.api.asc_registerCallback('asc_onInitStandartTextures', _.bind(this.onInitStandartTextures, this));
this.getApplication().getController('Common.Controllers.Fonts').setApi(this.api);
}
},
@ -1227,6 +1228,10 @@ define([
this._equationTemp = equation;
},
onInitStandartTextures: function(texture) {
this._textureTemp = texture;
},
fillFontsStore: function(combo, name) {
if (combo.store.length===0) {
var fontstore = new Common.Collections.Fonts(),

View File

@ -1887,6 +1887,9 @@ define([
onInitStandartTextures: function(texture) {
var me = this;
if ((!texture || texture.length<1) && (!me._texturearray || me._texturearray.length<1)) {
texture = PDFE.getController('Toolbar')._textureTemp;
}
if (texture && texture.length>0){
me._texturearray = [];
_.each(texture, function(item){