mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-26 04:25:06 +08:00
[PE] Загрузка текстур для слайда и текстарта по аналогии с редактором таблиц (по событию).
This commit is contained in:
@ -564,9 +564,7 @@ define([
|
||||
this.api = api;
|
||||
if (this.api) {
|
||||
this.api.SetInterfaceDrawImagePlaceSlide('slide-texture-img');
|
||||
var textures = this.api.get_PropertyStandartTextures();
|
||||
if (textures)
|
||||
this.onInitStandartTextures(textures);
|
||||
this.api.asc_registerCallback('asc_onInitStandartTextures', _.bind(this.onInitStandartTextures, this));
|
||||
}
|
||||
return this;
|
||||
},
|
||||
|
||||
@ -585,9 +585,7 @@ define([
|
||||
this.api = api;
|
||||
if (this.api) {
|
||||
this.api.SetInterfaceDrawImagePlaceTextArt('textart-texture-img');
|
||||
var textures = this.api.get_PropertyStandartTextures();
|
||||
if (textures)
|
||||
this.onInitStandartTextures(textures);
|
||||
this.api.asc_registerCallback('asc_onInitStandartTextures', _.bind(this.onInitStandartTextures, this));
|
||||
}
|
||||
return this;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user