Merge pull request #6 from ONLYOFFICE/feature/de-shape-settings-as-sse
Feature/de shape settings as sse
This commit is contained in:
commit
31f1c0dbb3
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue