Bug 24452: Advanced editor - show multiple spaces visually
authorOwen Leonard <oleonard@myacpl.org>
Fri, 17 Jan 2020 15:00:31 +0000 (15:00 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 23 Jan 2020 10:24:53 +0000 (10:24 +0000)
commit44ab1fd5c70e7ba825ee9c37ed616d332f2d8bde
tree53484b3b3dab03d89ab4cc2a0459f605b64e9454
parent56fcf5a34d580026e0799baf07b537ac5bc43bb5
Bug 24452: Advanced editor - show multiple spaces visually

This patch updates the JavaScript and CSS for the advanced MARC editor
so that multiple consecutive spaces within a line will be detected and
highlighted.

To test the EnableAdvancedCatalogingEditor system preference should be
enabled. Apply the patch and clear your browser cache if necessary.

 - Go to Cataloging -> Advanced editor.
 - On any text entry line (e.g. 245), enter some words with one, two,
   and more spaces in between them. When there are two or more spaces
   between words the spaces between the words should have a dotted red
   underline.
 - Remove the extra spaces and confirm that the dotted line disappears.

Signed-off-by: Cori Lynn Arnold <carnold@dgiinc.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
koha-tmpl/intranet-tmpl/lib/koha/cateditor/marc-mode.js
koha-tmpl/intranet-tmpl/prog/css/cateditor.css