Changeset 1869


Ignore:
Timestamp:
04/02/08 08:28:33 (7 years ago)
Author:
wwalc
Message:

Fix for #1009: Redirects get changed into numbered list

Location:
MediaWiki/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • MediaWiki/trunk/FCKeditorParser.body.php

    r1867 r1869  
    446446
    447447        function parse( $text, &$title, $options, $linestart = true, $clearState = true, $revid = null ) {
     448                $text = preg_replace("/^#REDIRECT/", "<!--FCK_REDIRECT-->", $text);
    448449                $parserOutput = parent::parse($text, $title, $options, $linestart , $clearState , $revid );
    449450
     
    474475                        }
    475476                }
     477
     478                $parserOutput->setText(str_replace("<!--FCK_REDIRECT-->", "#REDIRECT", $parserOutput->getText()));
    476479
    477480                return $parserOutput;
  • MediaWiki/trunk/mw12/FCKeditorParser_OldPP.body.php

    r1867 r1869  
    446446
    447447        function parse( $text, &$title, $options, $linestart = true, $clearState = true, $revid = null ) {
     448                $text = preg_replace("/^#REDIRECT/", "<!--FCK_REDIRECT-->", $text);
    448449                $parserOutput = parent::parse($text, $title, $options, $linestart , $clearState , $revid );
    449450
     
    474475                }
    475476               
     477                $parserOutput->setText(str_replace("<!--FCK_REDIRECT-->", "#REDIRECT", $parserOutput->getText()));
     478
    476479                return $parserOutput;
    477480        }
  • MediaWiki/trunk/plugins/mediawiki/fckplugin.js

    r1868 r1869  
    9797                var stringBuilder = new Array() ;
    9898                this._AppendNode( rootNode, stringBuilder, '' ) ;
    99                 return stringBuilder.join( '' ).RTrim() ;
     99                return stringBuilder.join( '' ).RTrim().replace(/^\n*/, "") ;
    100100        },
    101101
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2015 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy