From bd8debb2df92da80524be25f7323cf1c9d352a7f Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 1 Feb 2017 16:56:01 -0500 Subject: [PATCH] Use entity_encoding: 'raw' in notes This (and some other things) will help avoid changes in uploaded notes, which cause loss of cursor position and other problems after local notes are updated with the server version. A side effect is that multiple spaces won't be converted to ` `, so anything consuming note content will have to use `white-space: pre`. (Notes in reports appear to be substituting ` ` as necessary, though I'm not sure where that's happening.) --- resource/tinymce/note.html | 27 +++------------------------ 1 file changed, 3 insertions(+), 24 deletions(-) diff --git a/resource/tinymce/note.html b/resource/tinymce/note.html index 83ce1516f..5edd947e4 100644 --- a/resource/tinymce/note.html +++ b/resource/tinymce/note.html @@ -9,10 +9,10 @@ tinymce.init({ body_id: "zotero-tinymce-note", content_css: "css/note-content.css", - entities: "160,nbsp", - + browser_spellcheck: true, convert_urls: false, + entity_encoding: 'raw', fix_list_elements: true, plugins: "autolink,code,contextmenu,directionality,link,lists,paste,searchreplace", @@ -66,28 +66,7 @@ }); }); }); - }, - - // More restrictive version of default set, with JS/etc. removed - valid_elements: "@[id|class|style|title|dir