Ticket #1837: 1837.patch
File 1837.patch, 1.9 KB (added by , 16 years ago) |
---|
-
FCKeditorParser.body.php
164 164 $generalItems = array(); 165 165 166 166 $elements = array_merge( 167 array( 'nowiki', 'gallery', 'math' ),167 array( 'nowiki', 'gallery', 'math', 'ref', 'references' ), 168 168 array_keys( $this->mTagHooks ) ); 169 169 global $wgRawHtml; 170 170 if( $wgRawHtml ) { … … 205 205 case 'nowiki': 206 206 $output = $this->fck_wikiTag('nowiki', $content, $params); //required by FCKeditor 207 207 break; 208 case 'ref': 209 $output = $this->fck_wikiTag('ref', $content, $params); 210 break; 211 case 'references': 212 $output = $this->fck_wikiTag('references', $content, $params); 213 break; 208 214 case 'math': 209 215 if($wgUseTeX){ //normal render 210 216 $output = $wgContLang->armourMath( MathRenderer::renderMath( $content ) ); -
mw12/FCKeditorParser_OldPP.body.php
165 165 $generalItems = array(); 166 166 167 167 $elements = array_merge( 168 array( 'nowiki', 'gallery', ' math' ),168 array( 'nowiki', 'gallery', 'ref', 'math', 'references' ), 169 169 array_keys( $this->mTagHooks ) ); 170 170 global $wgRawHtml; 171 171 if( $wgRawHtml ) { … … 206 206 case 'nowiki': 207 207 $output = $this->fck_wikiTag('nowiki', $content, $params); //required by FCKeditor 208 208 break; 209 case 'ref': 210 $output = $this->fck_wikiTag('ref', $content, $params); 211 break; 212 case 'references': 213 $output = $this->fck_wikiTag('references', $content, $params); 214 break; 209 215 case 'math': 210 216 if($wgUseTeX){ //normal render 211 217 $output = $wgContLang->armourMath( MathRenderer::renderMath( $content ) );