Koha/koha-tmpl/intranet-tmpl/lib
Owen Leonard 08900d5653
Bug 24193: Add CodeMirror linting of JavaScript, CSS, HTML, and YAML
system preferences

This patch adds CodeMirror plugins for linting JS, CSS, HTML, and YAML.
When invalid data is entered in a linted CodeMirror editor an icon is
displayed in the editor's "gutter." Hovering over the icon displays the
error message.

This patch renames the minified CodeMirror JS file to match convention
but the version is unchanged.

To test, apply the patch and go to Administration -> System preferences.

Test preferences of each type and confirm that each type of CodeMirror
editor shows an error indicator if you entry invalid data. Valid data
should trigger no error indicator.

 - HTML: e.g.  OpacMainUserBlock,  opacheader. Enter invalid HTML, for
   example "<h1>Hello <h2>World</h2>."
   Example valid HTML: "<h1>Hello world</h1>"
 - JavaScript: e.g. OpacUserJS, IntranetUserJS. Example bad JS,
   "alert("Success!');"
   Example valid JS: "alert("Success!");"
 - CSS: e.g.  IntranetUserCSS, SCOUserCSS. Example bad CSS,
   "p { color blue }"
   Example valid CSS, "p { color: blue; }"
 - YAML: e.g. OpacHiddenItems. Example bad YAML:
   "one: two, three: four"
   Example valid YAML:
   "one: two
    three: four"

Also test that other CodeMirror instances still work correctly without
linting: The advanced MARC editor, SQL reports editing.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-03-02 10:44:14 +00:00
..
bootstrap Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
codemirror Bug 24193: Add CodeMirror linting of JavaScript, CSS, HTML, and YAML 2020-03-02 10:44:14 +00:00
d3c3 Bug 17282: Ability to create charts for SQL reports 2018-10-01 13:56:35 +00:00
datatables Bug 23013: Upgrade DataTables in the staff client 2019-08-22 15:23:19 +01:00
font-awesome Bug 18810: Update Font Awesome to 4.7.0 2017-09-19 09:22:45 -03:00
greybox Bug 12101 - Move Greybox library outside of language-specific directory 2014-04-25 15:14:03 +00:00
jquery Bug 23493: Replace rowGrouping with rowGroup 2020-01-29 11:33:25 +00:00
js-cookie Bug 23944: Phase out use of jquery.cookie.js in favor of js.cookie.js 2020-01-29 09:08:30 +00:00
jsdiff Bug 11876 [Follow-up] Add a diff view to staged MARC Records 2014-10-31 14:25:11 -03:00
keyboard Bug 17178: (RM follow-up) Use latest version of library 2019-06-28 16:35:18 +01:00
koha/cateditor Bug 24452: Advanced editor - show multiple spaces visually 2020-01-23 10:24:53 +00:00
leaflet Bug 18066: Add the leaflet library 2017-03-23 00:10:46 +00:00
linters Bug 24193: Add CodeMirror linting of JavaScript, CSS, HTML, and YAML 2020-03-02 10:44:14 +00:00
select2 Bug 21285: Add missing select2x2.png file 2018-09-14 17:23:35 +00:00
shortcut Bug 11035: (follow-up) move shortcut.js 2013-12-03 15:35:15 +00:00
tiny_mce Bug 22661: TinyMCE/WYSIWYG editor doesn't translate 2019-11-03 07:39:54 +00:00
yui Bug 23259: Remove reset-fonts-grids.css 2019-07-15 11:28:07 +01:00
filesaver.js Bug 11559: New libraries for Rancor 2015-10-27 12:16:05 -03:00
hc-sticky.js Bug 21751: Replace fixFloat with HC-sticky to fix Chrome display 2019-02-04 14:13:35 +00:00
require.js Bug 11559: New libraries for Rancor 2015-10-27 12:16:05 -03:00