From 0c01dc2d6ee00accc430d4396f7590f862433a36 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 17 Oct 2008 20:39:39 +0000 Subject: [PATCH] - Fix note saving on Windows - Remove some extra stuff from read-only note page --- chrome/content/zotero/bindings/styled-textbox.xml | 2 +- chrome/content/zotero/tinymce/noteview.html | 14 -------------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/chrome/content/zotero/bindings/styled-textbox.xml b/chrome/content/zotero/bindings/styled-textbox.xml index 28756e2b39..d1f7f71e4d 100644 --- a/chrome/content/zotero/bindings/styled-textbox.xml +++ b/chrome/content/zotero/bindings/styled-textbox.xml @@ -93,7 +93,7 @@ case 'keypress': // Ignore keypresses that don't change // any text - if (!event.isChar && + if (!event.which && event.keyCode != event.DOM_VK_DELETE && event.keyCode != event.DOM_VK_BACK_SPACE) { //Zotero.debug("Not a char"); diff --git a/chrome/content/zotero/tinymce/noteview.html b/chrome/content/zotero/tinymce/noteview.html index ba89735e13..5d8cd5728e 100644 --- a/chrome/content/zotero/tinymce/noteview.html +++ b/chrome/content/zotero/tinymce/noteview.html @@ -18,22 +18,8 @@ table.mceLayout > tbody > tr.mceLast { button_tile_map : true, language : "en", // TODO: localize entity_encoding : "raw", - gecko_spellcheck : true, readonly : true, - handle_event_callback : function (event) { - if (handleEvent) { - handleEvent(event); - } - }, - - onchange_callback : function () { - var event = { type: 'change' }; - if (handleEvent) { - handleEvent(event); - } - }, - fix_list_elements : true, fix_table_elements : true, /*plugins : "xhtmlxtras",*/