git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@47026 954022d7-b5bf-4e40-9824-e11837661b57

This commit is contained in:
Oleg.Korshul
2013-06-04 09:42:59 +00:00
committed by Alexander.Trofimov
parent 060b437b5f
commit 9fc331584a
3 changed files with 4 additions and 4 deletions

View File

@ -97,7 +97,7 @@ function CFontFileLoader(id)
if (-1 != _srcInd)
_src = _src.substring(0, _srcInd);
scriptElem.setAttribute('src', basePath + _src + ".js");
scriptElem.setAttribute('src', basePath + "js/" + _src + ".js");
scriptElem.setAttribute('type','text/javascript');
document.getElementsByTagName('head')[0].appendChild(scriptElem);
return false;
@ -128,7 +128,7 @@ function CFontFileLoader(id)
}
var xhr = new XMLHttpRequest();
xhr.open('GET', basePath + "TrueType/" + this.Id, true); // TODO:
xhr.open('GET', basePath + "native/" + this.Id, true); // TODO:
if (typeof ArrayBuffer !== 'undefined' && !window.opera)
xhr.responseType = 'arraybuffer';

View File

@ -1302,7 +1302,7 @@
var editor = new asc_docs_api("editor_sdk");
editor.CreateComponents();
editor.SetFontsPath("../FontsFreeType/FontFiles/");
editor.SetFontsPath("../../Fonts/");
editor.Init();
//editor.LoadDocument();

View File

@ -755,7 +755,7 @@ asc_docs_api.prototype.LoadDocument = function(c_DocInfo)
}
else
{
documentUrl = this.FontLoader.fontFilesPath + "../../WebWord/document/";
documentUrl = this.FontLoader.fontFilesPath + "../Word/WebWord/document/";
c_DocInfo.put_OfflineApp(true);
// For test create unique id