]> git.koha-community.org Git - koha.git/commit
Bug 22584: Add YAML support for Codemirror
authorOwen Leonard <oleonard@myacpl.org>
Wed, 27 Mar 2019 13:16:34 +0000 (13:16 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 19 Apr 2019 14:26:02 +0000 (14:26 +0000)
commita488c9f4512eafa3d742b3e8204c2ca8cc850987
tree776d70e6ec414dc61518efa283866a35940ae86f
parent7a603d98d14527509fd38eb29ceb360ba0030904
Bug 22584: Add YAML support for Codemirror

This patch adds the dependencies required to provide YAML syntax
highlighting in CodeMirror text areas. The OpacHiddenItems system
preference configuration is updated to use a "text/x-yaml" CodeMirror
syntax.

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

Expand the OpacHiddenItems preference and test that YAML-formatted text
entry has the correct syntax highlighting.

Signed-off-by: Michal Denar <black23@gmail.com>
https://bugs.koha-community.org/show_bug.cgi?id=2700

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
koha-tmpl/intranet-tmpl/lib/codemirror/yaml.js [new file with mode: 0644]
koha-tmpl/intranet-tmpl/lib/codemirror/yaml.min.js [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref