diff --git a/chrome/content/zotero/bindings/styled-textbox.xml b/chrome/content/zotero/bindings/styled-textbox.xml index e22711084..47be7dc4c 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 9d72e91c7..39bd5625a 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 1931359d7..93142d0f4 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 9b417bfd4..6a6653a2c 100644 --- a/chrome/content/zotero/tinymce/noteview.html +++ b/chrome/content/zotero/tinymce/noteview.html @@ -68,6 +68,6 @@ table.mceLayout > tbody > tr.mceLast { -
+