From c32144ddfd1fd7edc68e7689073dba6e43596ff2 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 19 Jun 2014 17:47:56 -0400 Subject: [PATCH] Fixes #503, Notes broken on Firefox 32 Unwrap the editor object if it's wrapped --- chrome/content/zotero/bindings/styled-textbox.xml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/bindings/styled-textbox.xml b/chrome/content/zotero/bindings/styled-textbox.xml index 8d2b59643..aa8993066 100644 --- a/chrome/content/zotero/bindings/styled-textbox.xml +++ b/chrome/content/zotero/bindings/styled-textbox.xml @@ -418,7 +418,13 @@ if (!SJOW.zoteroInit) { SJOW.zoteroInit = function(editor) { - self._editor = editor; + // Necessary in Fx32+ + if (editor.wrappedJSObject) { + self._editor = editor.wrappedJSObject; + } + else { + self._editor = editor; + } if (self._value) { self.value = self._value; }