From cc7360dc0c82cf12691225caf6a710299bd0994e Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 9 Apr 2013 04:14:48 -0400 Subject: [PATCH] Fix for
appearing in some notes instead of

https://forums.zotero.org/discussion/28781/ Not totally sure how/when this was happening. To fix existing notes, switch the Format to Paragraph manually. --- chrome/content/zotero/bindings/styled-textbox.xml | 8 ++++++-- chrome/content/zotero/tinymce/integration.html | 2 +- chrome/content/zotero/tinymce/note.html | 2 +- chrome/content/zotero/tinymce/noteview.html | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/chrome/content/zotero/bindings/styled-textbox.xml b/chrome/content/zotero/bindings/styled-textbox.xml index e227110847..47be7dc4c2 100644 --- a/chrome/content/zotero/bindings/styled-textbox.xml +++ b/chrome/content/zotero/bindings/styled-textbox.xml @@ -375,13 +375,17 @@ if (!SJOW.tinyMCE) { var exts = Zotero.getInstalledExtensions(function(exts) { for each(var ext in exts) { - if (ext.indexOf('NoScript') != -1) { - var warning = win.document.getElementById('noScriptWarning'); + if (ext.indexOf('NoScript') != -1 && ext.indexOf('disabled') == -1) { + var doc = win.document; + var div = doc.getElementById('tinymce'); + var warning = doc.createElement('div'); + warning.id = 'noScriptWarning'; var str = "The NoScript extension is preventing Zotero " + "from displaying notes. To use NoScript and Zotero together, " + "whitelist the 'file:' scheme in the NoScript preferences " + "and restart " + Zotero.appName + "."; warning.appendChild(document.createTextNode(str)); + div.appendChild(warning); break; } } diff --git a/chrome/content/zotero/tinymce/integration.html b/chrome/content/zotero/tinymce/integration.html index 9d72e91c7d..39bd5625a7 100755 --- a/chrome/content/zotero/tinymce/integration.html +++ b/chrome/content/zotero/tinymce/integration.html @@ -51,6 +51,6 @@ html, body { -

+
diff --git a/chrome/content/zotero/tinymce/note.html b/chrome/content/zotero/tinymce/note.html index 1931359d70..93142d0f4e 100644 --- a/chrome/content/zotero/tinymce/note.html +++ b/chrome/content/zotero/tinymce/note.html @@ -91,6 +91,6 @@ table.mceLayout { -
+
diff --git a/chrome/content/zotero/tinymce/noteview.html b/chrome/content/zotero/tinymce/noteview.html index 9b417bfd41..6a6653a2cc 100644 --- a/chrome/content/zotero/tinymce/noteview.html +++ b/chrome/content/zotero/tinymce/noteview.html @@ -68,6 +68,6 @@ table.mceLayout > tbody > tr.mceLast { -
+