commit 0c01dc2d6ee00accc430d4396f7590f862433a36
parent cda9ced2a5e1e52520f772b6a6c22cddd3983147
Author: Dan Stillman <dstillman@zotero.org>
Date: Fri, 17 Oct 2008 20:39:39 +0000
- Fix note saving on Windows
- Remove some extra stuff from read-only note page
Diffstat:
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
@@ -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
@@ -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",*/