From 3265fc8cc8cce70d31662c350a09d3fc9d45bf2b Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Wed, 22 Jan 2020 16:31:10 +0000 Subject: [PATCH] Bug 24025: Make CodeMirror content searchable Signed-off-by: Barbara Johnson Signed-off-by: Katrin Fischer Signed-off-by: Martin Renvoize (cherry picked from commit 1887f8a715944b80227171441b427d5ccf6177d1) Signed-off-by: Lucas Gass --- koha-tmpl/intranet-tmpl/prog/js/pages/preferences.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/pages/preferences.js b/koha-tmpl/intranet-tmpl/prog/js/pages/preferences.js index d5db030e7b..8eddad7770 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/pages/preferences.js +++ b/koha-tmpl/intranet-tmpl/prog/js/pages/preferences.js @@ -117,7 +117,8 @@ $( document ).ready( function () { var editor = CodeMirror.fromTextArea( document.getElementById( "pref_" + target ), { lineNumbers: true, mode: syntax, - lineWrapping: true + lineWrapping: true, + viewportMargin: Infinity, }); editor.on("change", function(){ mark_modified.call( $("#pref_" + target )[0]); -- 2.39.5