Page MenuHomePhabricator

Parser generates unwanted line breaks
Closed, InvalidPublic

Description

Author: quix01

Description:
Problem: FCKeditorParser.body.php inserts unwanted "\n".
This destroys the page layout.

Test: go to http://mediawiki.fckeditor.net/Sandbox

and enter some lines of text

Now switch to [Rich Editor] mode and back [Disable rich editor] multiple times and see the additional unwanted line breaks and the self-modifying layout =:(

Solution: change FCKeditorParser.body.php, line 685 from

if( $paragraphStack === false ) {
  $output .= $t . "\n";
}

into:

if( $paragraphStack === false ) {
  $output .= $t;
}

Note: This workaround does the job for me, but is not really tested in more detail.


Version: unspecified
Severity: major
Platform: Other

Details

Reference
bz25018

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 11:09 PM
bzimport set Reference to bz25018.
bzimport added a subscriber: Unknown Object (MLST).

Copied from bug 30075:

Per this upstream bug http://dev.ckeditor.com/ticket/5602

"FCKeditor and MediaWiki are no longer supported. Closing the ticked as invalid."