]> git.koha-community.org Git - koha.git/commit
Bug 22660: Add system pref to allow switching of editors in News Tool
authorLucas Gass <lucas@bywatersolutions.com>
Fri, 8 May 2020 22:57:40 +0000 (22:57 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Thu, 6 Aug 2020 20:23:47 +0000 (20:23 +0000)
commitfb0c35650c59a9bbe420d016a3f169b71c578fee
treee7537762fda7c2cb46e323156e7f85b516fde83d
parent10d515257c0c68a4ca07c8ab8108068ded1298e0
Bug 22660: Add system pref to allow switching of editors in News Tool

This patch adds a system preference called 'NewsToolEditor' which allows for the choice between TinyMCE and CodeMirror in the News Feature.

TEST PLAN:
1. Apply patch and run updatedatabase
2. Go to Tools > News and make a new entry or edit an existing News item.
3. When you initially load you should gte the TinyMCE editor (WYSIWYG)
4. Search for the NewsToolEditor system preference and switch to CodeMirror.
5. Reload your News item and now you should see the CodeMirror editor.
6. Try saving content with both and maki sure it works.
7. Try adding some different HTML tags in CodeMirror mode, saving, and making sure it looks right when you switch back to TinyMCE

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Lisette Scheer <lisetteslatah@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 980dd605031e616f1d481852dffe9cc6779eb3e3)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
installer/data/mysql/atomicupdate/bug_22660_add_NewsToolEditor_system_preference.perl [new file with mode: 0644]
installer/data/mysql/sysprefs.sql
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/tools.pref
koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt