mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 07:31:55 +08:00
[PDFE] Fix textures
This commit is contained in:
@ -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(),
|
||||
|
||||
@ -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){
|
||||
|
||||
Reference in New Issue
Block a user