From 827df32798cd8046d62cb6630fd33395d78fb3ef Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Mon, 1 May 2023 22:13:02 +0000 Subject: [PATCH] Bug 32253: Load all CodeMirror lines initially when using advanced editor To test: 1. Have advanced editor turned on. 2. Load a record with many lines and see that not all the lines appear until you click on the visible ones. 3. Apply patch and try again 4. All lines should load. Signed-off-by: David Nind Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc index a167314729..4bb87d7a87 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc @@ -1037,6 +1037,7 @@ require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr $('.modal-body').each( function() { $(this).height( $(window).height() * .8 - $(this).prevAll('.modal-header').height() ); } ); + editor.refresh(); }, 100); } -- 2.39.5