Bug 23315: (follow-up) Add configuration to enable CodeMirror
authorOwen Leonard <oleonard@myacpl.org>
Mon, 15 Jul 2019 13:11:13 +0000 (13:11 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 19 Jul 2019 08:33:37 +0000 (09:33 +0100)
This patch adds the "syntax" parameter to the corrected system
preferences so that the textareas will be displayed as CodeMirror
editors.

To test, apply the patch and test the affected system preferences:

Circulation -> SelfCheckHelpMessage
Staff client -> IntranetmainUserblock
Staff client -> IntranetCirculationHomeHTML
Staff client -> IntranetReportsHomeHTML
Staff client -> StaffLoginInstructions

With UseWYSIWYGinSystemPreferences disabled, the preferences should be
displayed as CodeMirror editors. With  UseWYSIWYGinSystemPreferences
enabled they should be WYSIWYG editors.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_client.pref

index d51c4c6..15085b6 100644 (file)
@@ -971,6 +971,7 @@ Circulation:
             - "Include the following HTML in the Help page of the web-based self checkout system:"
             - pref: SelfCheckHelpMessage
               type: textarea
+              syntax: text/html
               class: code
         -
             - pref: AutoSelfCheckAllowed
index 789077c..bade8e3 100644 (file)
@@ -48,6 +48,7 @@ Staff Client:
             - "Show the following HTML in its own column on the main page of the staff client:"
             - pref: IntranetmainUserblock
               type: textarea
+              syntax: text/html
               class: code
         -
             - "Show the following HTML to the left of the More menu at the top of each page on the staff client (should be a list of links or blank):"
@@ -105,16 +106,19 @@ Staff Client:
             - "Show the following HTML in its own div on the bottom of the home page of the circulation module:"
             - pref: IntranetCirculationHomeHTML
               type: textarea
+              syntax: text/html
               class: code
         -
             - "Show the following HTML in its own div on the bottom of the home page of the reports module:"
             - pref: IntranetReportsHomeHTML
               type: textarea
+              syntax: text/html
               class: code
         -
             - "Show the following HTML on the staff client login page"
             - pref: StaffLoginInstructions
               type: textarea
+              syntax: text/html
               class: code
     Options:
         -