Commit 31f1c0db authored by Alexander Trofimov's avatar Alexander Trofimov

Merge pull request #6 from ONLYOFFICE/feature/de-shape-settings-as-sse

Feature/de shape settings as sse
parents d7f163e1 f6e29849
......@@ -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);
......
......@@ -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));
......
......@@ -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;
},
......
......@@ -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));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment