Koha/koha-tmpl/intranet-tmpl/lib
Owen Leonard 698efcc0aa Bug 21582: Use CodeMirror for *UserJS & *UserCSS
This patch adds CodeMirror syntax highlighting by default to JS and CSS
system preferences. HTML preferences will use CodeMirror editors if
UseWYSIWYGinSystemPreferences is disabled.

Three new CodeMirror files are added to support three new syntax
highlighting modes: XML (for HTML), CSS, and JS.

A new option is added to *.pref file configurations for textareas which
are intended for HTML, JS, or CSS: syntax. This option is passed to the
CodeMirror configuration to control syntax highlighting mode.

Textareas without a syntax option specified will not have CodeMirror
enabled.

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

Test the behavior of several preferences which use <textarea> as their
input. For example:

- OPACUserJS (JS)
- IntranetUserCSS (CSS)
- OpacHeader (HTML)
- BibtexExportAdditionalFields (no highlighting)

Text entry in each of these should have the correct syntax highlighting
applied to them. All data should be saved correctly.

Test with UseWYSIWYGinSystemPreferences both on and off.

Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2019-04-12 02:28:17 +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 21582: Use CodeMirror for *UserJS & *UserCSS 2019-04-12 02:28:17 +00:00
d3c3 Bug 17282: Ability to create charts for SQL reports 2018-10-01 13:56:35 +00: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 19417: Display full error text when problem importing records 2019-03-13 05:31:33 +00:00
jsdiff Bug 11876 [Follow-up] Add a diff view to staged MARC Records 2014-10-31 14:25:11 -03:00
koha/cateditor Bug 21049: Set 007/00 when selecting material type (Rancor) 2019-03-28 13:46:04 +00:00
leaflet Bug 18066: Add the leaflet library 2017-03-23 00:10:46 +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 11584: Add wysiwyg editor to system preferences dealing with HTML 2015-08-28 10:28:50 -03:00
yui Bug 16241 - Move staff client CSS out of language directory 2016-04-29 13:54:37 +00: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