Commit f36433e4 authored by Alexander.Trofimov's avatar Alexander.Trofimov

delete dependence from FontLoader.fontFilesPath

parent e8459f65
...@@ -1366,7 +1366,7 @@ function DrawingObjects() { ...@@ -1366,7 +1366,7 @@ function DrawingObjects() {
{ {
var localUrl = aImagesSync[i]; var localUrl = aImagesSync[i];
if(api.DocInfo && api.DocInfo.asc_getOfflineApp()) { if(api.DocInfo && api.DocInfo.asc_getOfflineApp()) {
AscCommon.g_oDocumentUrls.addImageUrl(localUrl, api.FontLoader.fontFilesPath + "../Excel/document/media/" + localUrl); AscCommon.g_oDocumentUrls.addImageUrl(localUrl, "/sdkjs/cell/document/media/" + localUrl);
} }
aImagesSync[i] = AscCommon.getFullImageSrc2(localUrl); aImagesSync[i] = AscCommon.getFullImageSrc2(localUrl);
} }
......
...@@ -308,8 +308,7 @@ baseEditorsApi.prototype.asc_LoadDocument = function(isVersionHistory) { ...@@ -308,8 +308,7 @@ baseEditorsApi.prototype.asc_LoadDocument = function(isVersionHistory) {
this.sync_StartAction(c_oAscAsyncActionType.BlockInteraction, c_oAscAsyncAction.Open); this.sync_StartAction(c_oAscAsyncActionType.BlockInteraction, c_oAscAsyncAction.Open);
if (offlineMode === this.documentUrl) { if (offlineMode === this.documentUrl) {
// ToDo убрать зависимость от this.FontLoader.fontFilesPath this.documentUrl = '/sdkjs/' + this._editorNameById() + '/document/';
this.documentUrl = this.FontLoader.fontFilesPath + '../' + this._editorNameById() + '/document/';
this.DocInfo.asc_putOfflineApp(true); this.DocInfo.asc_putOfflineApp(true);
this._OfflineAppDocumentStartLoad(); this._OfflineAppDocumentStartLoad();
} }
......
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