]> git.koha-community.org Git - koha.git/commit
Bug 11584: Add wysiwyg editor to system preferences dealing with HTML
authorDavid Cook <dcook@prosentient.com.au>
Tue, 23 Jun 2015 07:36:58 +0000 (17:36 +1000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 28 Aug 2015 13:28:50 +0000 (10:28 -0300)
commit6d73e951beb376d47245a8a0dbc35db82a158fee
tree2bbbadef02994cb87b1dd1696947337e3c25aeaa
parentf9e24c8d4f2de5dd697a2d99c6e36cb59463920e
Bug 11584: Add wysiwyg editor to system preferences dealing with HTML

This patch adds the ability to use a WYSIWYG editor for system preferences.

The key files that I touch are:

1) admin/systempreferences.pl
2) koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt
3) koha-tmpl/intranet-tmpl/prog/en/modules/admin/systempreferences.tt

I also add:

4) koha-tmpl/intranet-tmpl/prog/en/includes/wysiwyg-systempreferences.inc

and

5) koha-tmpl/intranet-tmpl/lib/tiny_mce/plugins/advimage

This plugin is part of the TinyMCE distribution. It used to be in Koha, but
then someone removed it. It's useful for preferences like "opacheader" though.

*If you're using anything except IE, this should work super well. If
you're using IE, it'll probably only work for keyboard input and dragging
text within the editor box but not from outside of it. IE has worse
security, so you can probably paste using the context menu paste.

*While I think a WYSIWYG editor can be useful, there might be times
where the content is displayed differently than it is in the editor
because of higher level CSS and Javascript.

Signed-off-by: Martin Persson <xarragon@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
admin/systempreferences.pl
koha-tmpl/intranet-tmpl/lib/tiny_mce/plugins/advimage/css/advimage.css [new file with mode: 0644]
koha-tmpl/intranet-tmpl/lib/tiny_mce/plugins/advimage/editor_plugin.js [new file with mode: 0644]
koha-tmpl/intranet-tmpl/lib/tiny_mce/plugins/advimage/editor_plugin_src.js [new file with mode: 0644]
koha-tmpl/intranet-tmpl/lib/tiny_mce/plugins/advimage/image.htm [new file with mode: 0644]
koha-tmpl/intranet-tmpl/lib/tiny_mce/plugins/advimage/img/sample.gif [new file with mode: 0644]
koha-tmpl/intranet-tmpl/lib/tiny_mce/plugins/advimage/js/image.js [new file with mode: 0644]
koha-tmpl/intranet-tmpl/lib/tiny_mce/plugins/advimage/langs/en_dlg.js [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/includes/wysiwyg-systempreferences.inc [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt
koha-tmpl/intranet-tmpl/prog/en/modules/admin/systempreferences.tt