Commit afb1a25b authored by Chris Graham's avatar Chris Graham
Browse files

Fixed MANTIS-4401 (Make WYSIWYG quote-replies easier)

parent 12acf650
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -894,6 +894,7 @@ function __comcode_to_tempcode($comcode, $source_member, $as_admin, $wrap_pos, $
                            }
                            $tag_output->attach($temp_tpl);
                        }
                        $just_ended = false;
                    } else {
                        $just_new_line = ($just_ended && $next === "\n"); // Only propagate new line signal if it was a real but non-hard-new-line (i.e. the above if clause did not fire)
                        if (($next === ' ') && ($white_space_area) && (!$in_semihtml)) {
@@ -2143,6 +2144,11 @@ function __comcode_to_tempcode($comcode, $source_member, $as_admin, $wrap_pos, $
        $html_errors = true;
    }*/

    // CkEditor trims finally <br>'s making editing hard, so do a FUDGE
    if (($semiparse_mode) && (substr(rtrim($comcode), -8) == '[/quote]')) {
        $tag_output->attach('&nbsp;');
    }

    return $tag_output;
}