diff --git a/chrome/content/zotero/bindings/styled-textbox.xml b/chrome/content/zotero/bindings/styled-textbox.xml index dcb35ae1e..a5f8fcf44 100644 --- a/chrome/content/zotero/bindings/styled-textbox.xml +++ b/chrome/content/zotero/bindings/styled-textbox.xml @@ -652,14 +652,11 @@ // for read-only mode var htmlFile = this.mode + (this.getAttribute('readonly') != 'true' ? "" : "view"); - var ios = Components.classes["@mozilla.org/network/io-service;1"]. - getService(Components.interfaces.nsIIOService); - var uri = ios.newURI("resource://zotero/tinymce/" + htmlFile + ".html", null, null); - - // Pass directionality (LTR/RTL) and locale in URL - uri.spec += "?locale=" + encodeURIComponent(Zotero.locale) + var url = `resource://zotero/tinymce/${htmlFile}.html` + // Pass directionality (LTR/RTL) and locale in URL + + "?locale=" + encodeURIComponent(Zotero.locale) + "&dir=" + Zotero.dir; - + var uri = Services.io.newURI(url, null, null); Zotero.debug("Loading " + uri.spec);