[Koha-bugs] [Bug 21582] Use CodeMirror for *UserJS & *UserCSS

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Oct 17 12:16:59 CEST 2018


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21582

--- Comment #6 from Andrew Isherwood <andrew.isherwood at ptfs-europe.com> ---
Thinking about this a bit more, it would need additions to the
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/*.pref files to
indicate that CodeMirror needs to be attached to the resulting textarea and
what format it should be set to, so perhaps something like this in the .pref
files:

editor_format: css

This could be tested for in the template iterator that generates the list of
preferences, and a semantically meaningless attribute could be added to the
textarea element, such as:

data-editor-format="css"

This could then be used to determine which elements need CodeMirror attaching
to them and what it's formatting should be set to.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list