Commit 5158b47a authored by Alexander.Trofimov's avatar Alexander.Trofimov

flat_desine before create api

parent aead32ec
......@@ -111,6 +111,7 @@ define([
// Initialize api
window["flat_desine"] = true;
this.api = new Asc.asc_docs_api("editor_sdk");
if (this.api){
......@@ -119,7 +120,6 @@ define([
case '1': this.api.SetFontRenderingMode(1); break;
case '2': this.api.SetFontRenderingMode(2); break;
}
window["flat_desine"] = true;
this.api.asc_registerCallback('asc_onError', _.bind(this.onError, this));
this.api.asc_registerCallback('asc_onDocumentContentReady', _.bind(this.onDocumentContentReady, this));
......
......@@ -105,11 +105,10 @@ define([
// Initialize api
window["flat_desine"] = true;
this.api = new Asc.asc_docs_api("editor_sdk");
if (this.api){
window["flat_desine"] = true;
this.api.CreateComponents();
this.api.SetDrawingFreeze(true);
this.api.SetThemesPath("../../../../sdkjs/slide/themes/");
......
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