Show
Ignore:
Timestamp:
2008-08-27 16:58:27 (4 months ago)
Author:
wwalc
Message:

Changed the way how FCKeditor is loaded + a couple of other bugfixes

Files:
1 modified

Legend:

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

    r2077 r2388  
    156156        $parser->setOutputType(OT_HTML); 
    157157 
     158        wfSajaxToggleFCKeditor('show');         //FCKeditor was switched to visible 
    158159        return $parser->parse($wiki, $wgTitle, $options)->getText(); 
    159160} 
     161function wfSajaxToggleFCKeditor($data) { 
     162        global $wgFCKEditorSaveUserSetting; 
     163 
     164        if($data == 'show'){ 
     165                $_SESSION['showMyFCKeditor'] = RTE_VISIBLE;     //visible last time 
     166        } 
     167        else { 
     168                $_SESSION['showMyFCKeditor'] = 0;       //invisible 
     169        } 
     170        return "SUCCESS"; 
     171} 
     172 
     173