Bug 24025: Make CodeMirror content searchable
authorLucas Gass <lucas@bywatersolutions.com>
Wed, 22 Jan 2020 16:31:10 +0000 (16:31 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 23 Jan 2020 10:29:05 +0000 (10:29 +0000)
Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
koha-tmpl/intranet-tmpl/prog/js/pages/preferences.js

index d5db030..8eddad7 100644 (file)
@@ -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]);