diff --git a/apps/documenteditor/embed/js/ApplicationController.js b/apps/documenteditor/embed/js/ApplicationController.js index efedb522c..32e623504 100644 --- a/apps/documenteditor/embed/js/ApplicationController.js +++ b/apps/documenteditor/embed/js/ApplicationController.js @@ -707,9 +707,6 @@ var ApplicationController = new(function(){ api = new Asc.asc_docs_api("editor_sdk"); if (api){ - api.CreateComponents(); - api.Init(); - api.asc_registerCallback('asc_onError', onError); api.asc_registerCallback('asc_onDocumentContentReady', onDocumentContentReady); api.asc_registerCallback('asc_onOpenDocumentProgress', onOpenDocument); diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index 3c5059539..ec0066b6f 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -121,9 +121,6 @@ define([ } window["flat_desine"] = true; - this.api.CreateComponents(); - this.api.Init(); - this.api.asc_registerCallback('asc_onError', _.bind(this.onError, this)); this.api.asc_registerCallback('asc_onDocumentContentReady', _.bind(this.onDocumentContentReady, this)); this.api.asc_registerCallback('asc_onOpenDocumentProgress', _.bind(this.onOpenDocument, this)); diff --git a/apps/documenteditor/main/app/view/ShapeSettings.js b/apps/documenteditor/main/app/view/ShapeSettings.js index a4c2ac6e1..8449545cd 100644 --- a/apps/documenteditor/main/app/view/ShapeSettings.js +++ b/apps/documenteditor/main/app/view/ShapeSettings.js @@ -607,10 +607,8 @@ define([ this.api = api; if (this.api) { this.api.asc_registerCallback('asc_onImgWrapStyleChanged', _.bind(this._ImgWrapStyleChanged, this)); - this.api.SetInterfaceDrawImagePlaceShape('shape-texture-img'); - var textures = this.api.get_PropertyStandartTextures(); - if (textures) - this.onInitStandartTextures(textures); + this.api.asc_setInterfaceDrawImagePlaceShape('shape-texture-img'); + this.api.asc_registerCallback('asc_onInitStandartTextures', _.bind(this.onInitStandartTextures, this)); } return this; }, diff --git a/apps/documenteditor/mobile/app/controller/Main.js b/apps/documenteditor/mobile/app/controller/Main.js index 81a28957b..116652d53 100644 --- a/apps/documenteditor/mobile/app/controller/Main.js +++ b/apps/documenteditor/mobile/app/controller/Main.js @@ -60,8 +60,6 @@ Ext.define('DE.controller.Main', { api = new Asc.asc_docs_api("id-sdkeditor"); api.SetMobileVersion(true); - api.CreateComponents(); - api.Init(); api.initEvents2MobileAdvances(); api.asc_registerCallback('asc_onStartAction', Ext.bind(this.onLongActionBegin, this));