Ticket #2481: 2481_2.patch
File 2481_2.patch, 4.2 KB (added by , 16 years ago) |
---|
-
fckeditor_config.js
67 67 width: 66px; \ 68 68 height: 15px; \ 69 69 } \ 70 .FCK__MWHtml \ 71 { \ 72 background-image: url(' + FCKConfig.PluginsPath + 'mediawiki/images/icon_html.gif); \ 73 width: 66px; \ 74 height: 15px; \ 75 } \ 70 76 .FCK__MWMath \ 71 77 { \ 72 78 background-image: url(' + FCKConfig.PluginsPath + 'mediawiki/images/icon_math.gif); \ -
FCKeditorParser.body.php
198 198 break; 199 199 case 'html': 200 200 if( $wgRawHtml ) { 201 $output = $content; 202 break; 201 $output = $this->fck_wikiTag('html', $content, $params); 203 202 } 204 // Shouldn't happen otherwise. :)203 break; 205 204 case 'nowiki': 206 205 $output = $this->fck_wikiTag('nowiki', $content, $params); //required by FCKeditor 207 206 break; -
FCKeditorSajax.body.php
37 37 } 38 38 39 39 function wfSajaxSearchSpecialTagFCKeditor($empty) { 40 global $wgParser ;40 global $wgParser, $wgRawHtml; 41 41 42 42 $ret = "nowiki\nincludeonly\nonlyinclude\nnoinclude\ngallery\n"; 43 if( $wgRawHtml ) 44 { 45 $ret.="html\n"; 46 } 43 47 foreach ($wgParser->getTags() as $h) { 44 48 if (!in_array($h, array("pre", "math", "ref", "references"))) { 45 49 $ret .= $h ."\n"; … … 171 175 } 172 176 173 177 178 179 180 -
mw12/FCKeditorParser_OldPP.body.php
199 199 break; 200 200 case 'html': 201 201 if( $wgRawHtml ) { 202 $output = $content; 203 break; 202 $output = $this->fck_wikiTag('html', $content, $params); 204 203 } 205 // Shouldn't happen otherwise. :)204 break; 206 205 case 'nowiki': 207 206 $output = $this->fck_wikiTag('nowiki', $content, $params); //required by FCKeditor 208 207 break; -
plugins/mediawiki/dialogs/special.html
55 55 oTemplateSpan = FCK.GetRealElement( oFakeImage ) ; 56 56 sFakeClass = 'FCK__MWSpecial'; 57 57 } 58 else if ( oFakeImage.getAttribute('_fck_mw_html') ) 59 { 60 oTemplateSpan = FCK.GetRealElement( oFakeImage ) ; 61 sFakeClass = 'FCK__MWHtml'; 62 } 58 63 else if ( oFakeImage.getAttribute('_fck_mw_nowiki') ) 59 64 { 60 65 oTemplateSpan = FCK.GetRealElement( oFakeImage ) ; … … 173 178 case 'includeonly': 174 179 sFakeClass = 'FCK__MWIncludeonly'; 175 180 break; 181 case 'html': 182 sFakeClass = 'FCK__MWHtml'; 183 break; 176 184 case 'onlyinclude': 177 185 sFakeClass = 'FCK__MWOnlyinclude'; 178 186 break; -
plugins/mediawiki/fckplugin.js
555 555 sNodeName = 'nowiki' ; 556 556 break ; 557 557 558 case 'fck_mw_html' : 559 sNodeName = 'html' ; 560 break ; 561 558 562 case 'fck_mw_includeonly' : 559 563 sNodeName = 'includeonly' ; 560 564 break ; … … 873 877 case 'fck_mw_nowiki' : 874 878 if ( className == null ) 875 879 className = 'FCK__MWNowiki' ; 880 case 'fck_mw_html' : 881 if ( className == null ) 882 className = 'FCK__MWHtml' ; 876 883 case 'fck_mw_includeonly' : 877 884 if ( className == null ) 878 885 className = 'FCK__MWIncludeonly' ; … … 956 963 contextMenu.AddSeparator() ; 957 964 contextMenu.AddItem( 'MW_Ref', 'Reference Properties' ) ; 958 965 } 966 if ( tag.getAttribute( '_fck_mw_html' ) ) 967 { 968 contextMenu.AddSeparator() ; 969 contextMenu.AddItem( 'MW_Special', 'Special Tag Properties' ) ; 970 } 959 971 if ( tag.getAttribute( '_fck_mw_math' ) ) 960 972 { 961 973 contextMenu.AddSeparator() ;