delete asc_SetFontsPath
route fonts by path "fonts/"
This commit is contained in:
parent
b8a2a6ea49
commit
79bfa777f8
|
@ -18,7 +18,6 @@
|
|||
<div id="editor_sdk">
|
||||
<script type="text/javascript">
|
||||
var editor = new Asc.asc_docs_api("editor_sdk");
|
||||
editor.asc_SetFontsPath("../../../../sdkjs/fonts/");
|
||||
editor.LoadFontsFromServer();
|
||||
</script>
|
||||
</body>
|
||||
|
|
|
@ -708,7 +708,6 @@ var ApplicationController = new(function(){
|
|||
|
||||
if (api){
|
||||
api.CreateComponents();
|
||||
api.asc_SetFontsPath("../../../../sdkjs/fonts/");
|
||||
api.Init();
|
||||
|
||||
api.asc_registerCallback('asc_onError', onError);
|
||||
|
|
|
@ -122,7 +122,6 @@ define([
|
|||
window["flat_desine"] = true;
|
||||
|
||||
this.api.CreateComponents();
|
||||
this.api.asc_SetFontsPath("../../../../sdkjs/fonts/");
|
||||
this.api.Init();
|
||||
|
||||
this.api.asc_registerCallback('asc_onError', _.bind(this.onError, this));
|
||||
|
|
|
@ -61,7 +61,6 @@ Ext.define('DE.controller.Main', {
|
|||
api = new Asc.asc_docs_api("id-sdkeditor");
|
||||
api.SetMobileVersion(true);
|
||||
api.CreateComponents();
|
||||
api.asc_SetFontsPath("../../../../sdkjs/fonts/");
|
||||
api.Init();
|
||||
api.initEvents2MobileAdvances();
|
||||
|
||||
|
|
|
@ -716,7 +716,6 @@ var ApplicationController = new(function(){
|
|||
|
||||
if (api){
|
||||
api.CreateComponents();
|
||||
api.asc_SetFontsPath("../../../../sdkjs/fonts/");
|
||||
api.SetThemesPath("../../../../sdkjs/slide/themes/");
|
||||
api.Init();
|
||||
|
||||
|
|
|
@ -112,7 +112,6 @@ define([
|
|||
|
||||
this.api.CreateComponents();
|
||||
this.api.SetDrawingFreeze(true);
|
||||
this.api.asc_SetFontsPath("../../../../sdkjs/fonts/");
|
||||
this.api.SetThemesPath("../../../../sdkjs/slide/themes/");
|
||||
this.api.Init();
|
||||
|
||||
|
|
|
@ -63,7 +63,6 @@ Ext.define('PE.controller.Main', {
|
|||
api = new Asc.asc_docs_api("id-sdkeditor");
|
||||
api.SetMobileVersion(true);
|
||||
api.CreateComponents();
|
||||
api.asc_SetFontsPath("../../../../sdkjs/fonts/");
|
||||
api.SetThemesPath("../../../../sdkjs/slide/themes/");
|
||||
api.Init();
|
||||
api.initEvents2MobileAdvances();
|
||||
|
|
|
@ -691,8 +691,6 @@ var ApplicationController = new(function(){
|
|||
api = new Asc.spreadsheet_api("editor_sdk");
|
||||
|
||||
if (api){
|
||||
api.asc_SetFontsPath("../../../../sdkjs/fonts/");
|
||||
|
||||
api.asc_registerCallback('asc_onStartAction', onLongActionBegin);
|
||||
api.asc_registerCallback('asc_onEndAction', onLongActionEnd);
|
||||
api.asc_registerCallback('asc_onError', onError);
|
||||
|
|
|
@ -113,7 +113,6 @@ define([
|
|||
// Initialize api
|
||||
this.api = new Asc.spreadsheet_api("editor_sdk", "ce-cell-content");
|
||||
this.api.asc_setFontRenderingMode(parseInt(value));
|
||||
this.api.asc_SetFontsPath("../../../../sdkjs/fonts/");
|
||||
|
||||
this.api.asc_registerCallback('asc_onOpenDocumentProgress', _.bind(this.onOpenDocument, this));
|
||||
this.api.asc_registerCallback('asc_onEndAction', _.bind(this.onLongActionEnd, this));
|
||||
|
|
|
@ -65,7 +65,6 @@ Ext.define('SSE.controller.Main', {
|
|||
|
||||
// Initialize api
|
||||
this.api = new Asc.spreadsheet_api("id-sdkeditor", "", SSE.controller.ApiEvents, {}, {});
|
||||
this.api.asc_SetFontsPath("../../../../sdkjs/fonts/");
|
||||
this.api.asc_setMobileVersion(true);
|
||||
|
||||
this.api.asc_registerCallback('asc_onAdvancedOptions', Ext.bind(this.onAdvancedOptions, this));
|
||||
|
|
Loading…
Reference in a new issue