diff --git a/chrome/content/zotero/bindings/styled-textbox.xml b/chrome/content/zotero/bindings/styled-textbox.xml index fabf72541..1475b117c 100644 --- a/chrome/content/zotero/bindings/styled-textbox.xml +++ b/chrome/content/zotero/bindings/styled-textbox.xml @@ -28,6 +28,7 @@ xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> + @@ -63,11 +64,6 @@ // tables, which wouldn't work here. ' ':"\t" }; - - // not sure why an event is necessary here, but it is - var me = this; - this._loadHandler = function() {me._iframeLoaded()}; - this._iframe.addEventListener("DOMContentLoaded", this._loadHandler, false); ]]> @@ -214,8 +181,13 @@ } if(!this._editor) { - // if not loaded, wait until it is to set - return this._value = val; + Zotero.debug('No editor yet'); + + this._value = val; + if (!this._loaded) { + this._load(); + } + return ; } if (this.value == val) { @@ -270,6 +242,51 @@ + + + + + + + + diff --git a/chrome/content/zotero/tinymce/note.html b/chrome/content/zotero/tinymce/note.html index c84d53efb..106456645 100755 --- a/chrome/content/zotero/tinymce/note.html +++ b/chrome/content/zotero/tinymce/note.html @@ -2,39 +2,7 @@ TinyMCE - + diff --git a/chrome/content/zotero/tinymce/noteview.html b/chrome/content/zotero/tinymce/noteview.html new file mode 100644 index 000000000..ba89735e1 --- /dev/null +++ b/chrome/content/zotero/tinymce/noteview.html @@ -0,0 +1,54 @@ + + + +TinyMCE + + + + + + +
+ + diff --git a/chrome/skin/default/zotero/tinymce/note-ui.css b/chrome/skin/default/zotero/tinymce/note-ui.css new file mode 100644 index 000000000..3c04ff60e --- /dev/null +++ b/chrome/skin/default/zotero/tinymce/note-ui.css @@ -0,0 +1,32 @@ +html, body { + height: 100%; + margin: 0; +} +#tinymce_parent { + display: block; + height: 100%; +} +#tinymce_tbl { + height: 100% !important; + width: 100% !important; +} + +table.mceLayout > tbody > tr.mceLast { + position: absolute; + display: block; + top: 54px; + bottom: 2px; + left: 1px; + right: 1px; +} + +td.mceIframeContainer { + display: block; + height: 100% !important; + width: 100% !important; +} +#tinymce_ifr { + height: 100% !important; + width: 100% !important; +} +