Permalink
Browse files

bug 3272: preserve formatting when editing help

Tweak the TinyMCE settings so that more of the original
whitespace and HTML is preserved when editing help, making
help patches easier to understand.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
  • Loading branch information...
Galen Charlton
Galen Charlton committed May 29, 2009
1 parent b397029 commit b5ab0da999b892237026947017f170d5f001e732
Showing with 3 additions and 0 deletions.
  1. +2 −0 edithelp.pl
  2. +1 −0 koha-tmpl/intranet-tmpl/prog/en/modules/help/edithelp.tmpl
View
@@ -34,6 +34,8 @@ BEGIN
my $referer = $input->param('referer');
my $oldreferer = $referer;
my $help = $input->param('help');
+# strip any DOS-newlines that TinyMCE may have sneaked in
+$help =~ s/\r//g;
my $error;
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
@@ -16,6 +16,7 @@ tinyMCE.init({
theme_advanced_path_location : "bottom",
plugin_insertdate_dateFormat : "%Y-%m-%d",
plugin_insertdate_timeFormat : "%H:%M:%S",
+ apply_source_formatting : true
});
</script>
<!-- TMPL_IF name="intranetstylesheet" -->

0 comments on commit b5ab0da

Please sign in to comment.