Patch EditorSession manually
This commit is contained in:
parent
c3f8c8d13d
commit
28f377dc8f
4
js/3rdparty/webodf/editor/EditorSession.js
vendored
4
js/3rdparty/webodf/editor/EditorSession.js
vendored
@ -25,10 +25,12 @@
|
|||||||
/*global runtime, define, document, core, odf, gui, ops*/
|
/*global runtime, define, document, core, odf, gui, ops*/
|
||||||
|
|
||||||
define("webodf/editor/EditorSession", [
|
define("webodf/editor/EditorSession", [
|
||||||
"dojo/text!resources/fonts/fonts.css"
|
"dojo/text!" + OC.filePath('documents', 'css', 'fonts.css')
|
||||||
], function (fontsCSS) { // fontsCSS is retrieved as a string, using dojo's text retrieval AMD plugin
|
], function (fontsCSS) { // fontsCSS is retrieved as a string, using dojo's text retrieval AMD plugin
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
fontsCSS = fontsCSS.replace(/\.\/fonts/g, OC.appswebroots['documents']+'/css/fonts');
|
||||||
|
|
||||||
runtime.loadClass("core.Async");
|
runtime.loadClass("core.Async");
|
||||||
runtime.loadClass("core.DomUtils");
|
runtime.loadClass("core.DomUtils");
|
||||||
runtime.loadClass("odf.OdfUtils");
|
runtime.loadClass("odf.OdfUtils");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user