From 79bfa777f82cdcf48331b8f7afdb2f2ae0b1472d Mon Sep 17 00:00:00 2001 From: "Alexander.Trofimov" Date: Thu, 5 May 2016 14:07:51 +0300 Subject: [PATCH] delete asc_SetFontsPath route fonts by path "fonts/" --- apps/api/documents/cache-scripts.html | 1 - apps/documenteditor/embed/js/ApplicationController.js | 1 - apps/documenteditor/main/app/controller/Main.js | 1 - apps/documenteditor/mobile/app/controller/Main.js | 1 - apps/presentationeditor/embed/js/ApplicationController.js | 1 - apps/presentationeditor/main/app/controller/Main.js | 1 - apps/presentationeditor/mobile/app/controller/Main.js | 1 - apps/spreadsheeteditor/embed/js/ApplicationController.js | 2 -- apps/spreadsheeteditor/main/app/controller/Main.js | 1 - apps/spreadsheeteditor/mobile/app/controller/Main.js | 1 - 10 files changed, 11 deletions(-) diff --git a/apps/api/documents/cache-scripts.html b/apps/api/documents/cache-scripts.html index b2e36f3b8..5d69bba64 100644 --- a/apps/api/documents/cache-scripts.html +++ b/apps/api/documents/cache-scripts.html @@ -18,7 +18,6 @@
diff --git a/apps/documenteditor/embed/js/ApplicationController.js b/apps/documenteditor/embed/js/ApplicationController.js index 426f0d99b..efedb522c 100644 --- a/apps/documenteditor/embed/js/ApplicationController.js +++ b/apps/documenteditor/embed/js/ApplicationController.js @@ -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); diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index 2726344c2..3c5059539 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -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)); diff --git a/apps/documenteditor/mobile/app/controller/Main.js b/apps/documenteditor/mobile/app/controller/Main.js index 8ee4e6b6f..81a28957b 100644 --- a/apps/documenteditor/mobile/app/controller/Main.js +++ b/apps/documenteditor/mobile/app/controller/Main.js @@ -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(); diff --git a/apps/presentationeditor/embed/js/ApplicationController.js b/apps/presentationeditor/embed/js/ApplicationController.js index ed3273322..12ad00a25 100644 --- a/apps/presentationeditor/embed/js/ApplicationController.js +++ b/apps/presentationeditor/embed/js/ApplicationController.js @@ -716,7 +716,6 @@ var ApplicationController = new(function(){ if (api){ api.CreateComponents(); - api.asc_SetFontsPath("../../../../sdkjs/fonts/"); api.SetThemesPath("../../../../sdkjs/slide/themes/"); api.Init(); diff --git a/apps/presentationeditor/main/app/controller/Main.js b/apps/presentationeditor/main/app/controller/Main.js index 9c73e3730..62d1de9f9 100644 --- a/apps/presentationeditor/main/app/controller/Main.js +++ b/apps/presentationeditor/main/app/controller/Main.js @@ -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(); diff --git a/apps/presentationeditor/mobile/app/controller/Main.js b/apps/presentationeditor/mobile/app/controller/Main.js index ba5b871e7..146c10299 100644 --- a/apps/presentationeditor/mobile/app/controller/Main.js +++ b/apps/presentationeditor/mobile/app/controller/Main.js @@ -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(); diff --git a/apps/spreadsheeteditor/embed/js/ApplicationController.js b/apps/spreadsheeteditor/embed/js/ApplicationController.js index 79d7252c0..55aa046d7 100644 --- a/apps/spreadsheeteditor/embed/js/ApplicationController.js +++ b/apps/spreadsheeteditor/embed/js/ApplicationController.js @@ -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); diff --git a/apps/spreadsheeteditor/main/app/controller/Main.js b/apps/spreadsheeteditor/main/app/controller/Main.js index 657037567..a37b0b60a 100644 --- a/apps/spreadsheeteditor/main/app/controller/Main.js +++ b/apps/spreadsheeteditor/main/app/controller/Main.js @@ -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)); diff --git a/apps/spreadsheeteditor/mobile/app/controller/Main.js b/apps/spreadsheeteditor/mobile/app/controller/Main.js index 034ee4817..8acb394f7 100644 --- a/apps/spreadsheeteditor/mobile/app/controller/Main.js +++ b/apps/spreadsheeteditor/mobile/app/controller/Main.js @@ -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));