Koha/koha-tmpl/intranet-tmpl/prog/css
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
..
src Bug 22032: Improve local cover image tab on detail page 2019-03-22 20:28:24 +00:00
addbiblio.css Revert "Bug 22399: Improve responsive behavior of the basic marc editor" 2019-03-27 17:36:35 +00:00
buttons.dataTables.min.css
cateditor.css Bug 19263: Rancor - 001 widget - db update 2018-10-27 13:26:09 +00:00
datatables.css Bug 22261: Revise style of DataTables menus 2019-02-22 14:14:27 +00:00
hierarchy.css
humanmsg.css
installer.css
itemsearchform.css
login.css
mainpage.css
preferences.css Bug 21582: Use CodeMirror for *UserJS & *UserCSS 2019-04-12 02:28:17 +00:00
print.css Bug 22147: Hidden 'Batch modify' button on report print layout 2019-02-19 13:52:14 +00:00
printreceiptinvoice.css
quotes.css
reports.css Bug 22287: Correct new charts CSS 2019-02-15 18:42:47 +00:00
right-to-left.css Bug 22023: (follow-up) Right-to-left layout improvements 2019-03-13 05:31:30 +00:00
select2.css
spinelabel.css
staff-global.css Bug 22032: Compiled CSS 2019-03-22 20:29:19 +00:00
tinymce.css
uploader.css