Changeset 544

Show
Ignore:
Timestamp:
2007-07-26 01:09:11 (18 months ago)
Author:
wwalc
Message:

added hack in EditPage.php to handle preview properly plus one minor change in FCKeditor.body.php

Location:
MediaWiki/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • MediaWiki/trunk/extensions/FCKeditor/FCKeditor.body.php

    r542 r544  
    257257        global $wgFCKEditorExtDir, $wgFCKEditorDir, $wgFCKEditorHeight, $wgUser; 
    258258        global $wgStylePath, $wgStyleVersion; 
    259          
    260         print "ONEDIT!!!!!"; 
    261259         
    262260        $options = new FCKeditorParserOptions(); 
  • MediaWiki/trunk/includes/EditPage.php

    r469 r544  
    13581358         */ 
    13591359        function getPreviewText() { 
    1360                 global $wgOut, $wgUser, $wgTitle, $wgParser; 
     1360                global $wgOut, $wgUser, $wgTitle, $wgParser, $wgRequest; 
    13611361 
    13621362                $fname = 'EditPage::getPreviewText'; 
    13631363                wfProfileIn( $fname ); 
    13641364 
     1365        if ($wgUser->getOption( 'showtoolbar' ) && !$wgUser->getOption( 'riched_disable' )) { 
     1366                    $oldTextBox1 = $this->textbox1; 
     1367                    $this->importFormData( $wgRequest ); 
     1368        } 
     1369         
    13651370                if ( $this->mTriedSave && !$this->mTokenOk ) { 
    13661371                        $msg = 'session_fail_preview'; 
     
    14211426 
    14221427                        wfProfileOut( $fname ); 
     1428            if ($wgUser->getOption( 'showtoolbar' ) && !$wgUser->getOption( 'riched_disable' )) { 
     1429                       $this->textbox1 = $oldTextBox1; 
     1430            } 
    14231431                        return $previewhead . $previewHTML; 
    1424                 } 
     1432                }                
    14251433        } 
    14261434 
  • MediaWiki/trunk/skins/monobook/main.css

    r469 r544  
    5454        font: x-small sans-serif; 
    5555        background: #f9f9f9 url(headbg.jpg) 0 0 no-repeat; 
    56         color: black; 
     56        color: green; 
    5757        margin: 0; 
    5858        padding: 0; 
     
    126126 
    127127h1, h2, h3, h4, h5, h6 { 
    128         color: black; 
     128        color: red; 
    129129        background: none; 
    130130        font-weight: normal;