[Koha-bugs] [Bug 11584] Add wysiwyg editor to system preferences dealing with HTML

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jul 14 09:16:53 CEST 2015


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

--- Comment #13 from David Cook <dcook at prosentient.com.au> ---
Created attachment 40982
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=40982&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!

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


More information about the Koha-bugs mailing list