mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-02-10 18:15:19 +08:00
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:
committed by
Alexander.Trofimov
parent
060b437b5f
commit
9fc331584a
@ -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';
|
||||
|
||||
@ -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();
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user