Last modified: 2011-07-27 23:25:48 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T27018, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 25018 - Parser generates unwanted line breaks
Parser generates unwanted line breaks
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
FCKeditor (Other open bugs)
unspecified
Other All
: Low major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-09-01 20:16 UTC by Quix01
Modified: 2011-07-27 23:25 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Quix01 2010-09-01 20:16:57 UTC
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.
Comment 1 Chad H. 2011-07-27 23:25:48 UTC
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."

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links