diff --git a/chrome/content/zotero/bindings/styled-textbox.xml b/chrome/content/zotero/bindings/styled-textbox.xml index 7672143eb..8cdca5bf8 100644 --- a/chrome/content/zotero/bindings/styled-textbox.xml +++ b/chrome/content/zotero/bindings/styled-textbox.xml @@ -294,6 +294,28 @@ self._editor.focus(); self._focus = false; } + + // Add CSS rules to notes + if (self.mode == 'note') { + var css = "body#zotero-tinymce.mceContentBody, " + + "body#zotero-tinymce-note.mceContentBody p, " + + "body#zotero-tinymce-note.mceContentBody pre { " + + "font-size: " + + Zotero.Prefs.get('note.fontSize') + "px; " + + "} " + + "body#zotero-tinymce-note.mceContentBody, " + + "body#zotero-tinymce-note.mceContentBody p { " + + "font-family: " + + Zotero.Prefs.get('note.fontFamily') + "; " + + "}" + + Zotero.Prefs.get('note.css'); + + var doc = editor.contentDocument; + var head = doc.getElementsByTagName("head")[0]; + var style = doc.createElement("style"); + style.innerHTML = css; + head.appendChild(style); + } }); if (self._eventHandler) { diff --git a/chrome/content/zotero/preferences/preferences.xul b/chrome/content/zotero/preferences/preferences.xul index adc8afdda..421ed15e2 100644 --- a/chrome/content/zotero/preferences/preferences.xul +++ b/chrome/content/zotero/preferences/preferences.xul @@ -44,8 +44,8 @@ To add a new preference: label="&zotero.preferences.prefpane.general;" image="chrome://zotero/skin/prefs-general.png"> - + @@ -68,19 +68,15 @@ To add a new preference: - + - - - - - - - - - + + + + + @@ -95,14 +91,27 @@ To add a new preference: + - + + + + + + + + + + + + + + + + - - - - - diff --git a/chrome/content/zotero/tinymce/note.html b/chrome/content/zotero/tinymce/note.html index 27ce11a12..7c899df85 100755 --- a/chrome/content/zotero/tinymce/note.html +++ b/chrome/content/zotero/tinymce/note.html @@ -7,6 +7,7 @@