From 4aaec5f091530a9e377ac0f05c5e2beb2da995d1 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 14 Oct 2018 23:34:32 -0400 Subject: [PATCH] Fix note being read-only after viewing note in trash --- chrome/content/zotero/bindings/noteeditor.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/bindings/noteeditor.xml b/chrome/content/zotero/bindings/noteeditor.xml index 1f683b2589..51e2e075e8 100644 --- a/chrome/content/zotero/bindings/noteeditor.xml +++ b/chrome/content/zotero/bindings/noteeditor.xml @@ -65,14 +65,15 @@ switch (val) { case 'view': case 'merge': - // If there's an existing editor, mark it as read-only. This allows for - // disabling an existing editable note (e.g., if there's a save error). if (this.noteField) { this.noteField.onInit(ed => ed.setMode('readonly')); } break; case 'edit': + if (this.noteField) { + this.noteField.onInit(ed => ed.setMode('design')); + } this.editable = true; this.saveOnEdit = true; this.parentClickHandler = this.selectParent;