From 6051c245b455f07438fb2d9596cf38ffc693490e Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 11 Dec 2017 02:39:22 -0500 Subject: [PATCH] Fix auto-focusing of notes in external window --- chrome/content/zotero/note.js | 1 - resource/tinymce/note.html | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/note.js b/chrome/content/zotero/note.js index 57dd99589..25d7458f5 100644 --- a/chrome/content/zotero/note.js +++ b/chrome/content/zotero/note.js @@ -29,7 +29,6 @@ var notifierUnregisterID; async function onLoad() { noteEditor = document.getElementById('zotero-note-editor'); noteEditor.mode = 'edit'; - noteEditor.focus(); // Set font size from pref Zotero.setFontSize(noteEditor); diff --git a/resource/tinymce/note.html b/resource/tinymce/note.html index 003bbe05e..b62c42ba1 100644 --- a/resource/tinymce/note.html +++ b/resource/tinymce/note.html @@ -10,6 +10,7 @@ body_id: "zotero-tinymce-note", content_css: "css/note-content.css", + auto_focus: "tinymce", browser_spellcheck: true, convert_urls: false, entity_encoding: 'raw',