Translate relative path into absolute for fonts stripping index.php

This commit is contained in:
Victor Dubiniuk 2014-10-15 00:09:36 +03:00
parent b2e63877ef
commit 77a074232e

View File

@ -43,6 +43,8 @@ define("webodf/editor/EditorSession", [
], function (fontsCSS) { // fontsCSS is retrieved as a string, using dojo's text retrieval AMD plugin
"use strict";
fontsCSS = fontsCSS.replace(/\.\/fonts/g, OC.appswebroots['documents']+'/css/fonts');
runtime.loadClass("core.DomUtils");
runtime.loadClass("odf.OdfUtils");
runtime.loadClass("ops.OdtDocument");