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>
This commit is contained in:
parent
b397029280
commit
b5ab0da999
2 changed files with 3 additions and 0 deletions
|
@ -34,6 +34,8 @@ my $type = $input->param('type');
|
|||
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" -->
|
||||
|
|
Loading…
Reference in a new issue