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

Feature/de shape settings as sse
This commit is contained in:
Alexander Trofimov 2016-05-06 14:31:05 +04:00
commit 31f1c0dbb3
4 changed files with 2 additions and 12 deletions

View file

@ -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);

View file

@ -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));

View file

@ -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;
},

View file

@ -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));