http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11584

--- Comment #24 from Jonathan Druart <jonathan.dru...@bugs.koha-community.org> 
---
Created attachment 41673
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=41673&action=edit
Bug 11584 - Add wysiwyg editor to system preferences dealing with HTML (add
system preference)

This patch adds a system preference "UseWYSIWYGinSystemPreferences" to the
Staff Client tab.

By default, it is off, which means that the TinyMCE WYSIWYG editor won't be
shown for system
preferences with a type of "htmlarea".

However, when it's on, it will show the editor for "Local Use" preferences with
a "htmlarea"
type, and for other system preferences in the "Opac", "Circulation", and "Staff
Client" tabs,
which I have re-assigned. (Basically, I grepped for HTML and changed the type
for all
the system preferences I found except for "IntranetNav", "OpacCustomSearch",
and "OPACSearchForTitleIn",
as a WYSIWYG editor would potentially break the output for these system
preferences or
add no value to them...)

_TEST PLAN_

0) Run `perl installer/data/mysql/updatedatabase.pl` after setting your
environmental variables
1) Check the Opac tab to make sure that the WYSIWYG is nowhere to be seen
2) Change the "UseWYSIWYGinSystemPreferences" preference in "Staff Client" to
"Show"
3) Refresh the Opac tab and notice that many system preferences now have a
WYSIWYG editor

4) Try typing some text into these fields
5) Note that it gets marked as "modified"
6) Save the preference, and refresh the page
7) Note that the content has been saved
8) Take a look at how it's rendered on the actual webpage!

Signed-off-by: Martin Persson <xarra...@gmail.com>

Signed-off-by: Jonathan Druart <jonathan.dru...@bugs.koha-community.org>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to