Changeset 586
- Timestamp:
- 2007-07-28 00:50:41 (18 months ago)
- Location:
- MediaWiki/trunk/extensions/FCKeditor
- Files:
-
- 3 modified
-
FCKeditor.body.php (modified) (1 diff)
-
plugins/mediawiki/dialogs/math.html (modified) (1 diff)
-
plugins/mediawiki/fckplugin.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
MediaWiki/trunk/extensions/FCKeditor/FCKeditor.body.php
r581 r586 103 103 if ($wgUseTeX) { 104 104 //it may add much overload on page with huge amount of math content... 105 $text = preg_replace('/<img class="tex" alt="([^"]*)"/m', '<img alt="$1" _fck_mw_math="$1"', $text);106 $text = preg_replace("/<img class='tex' src=\"([^\"]*)\" alt=\"([^\"]*)\"/m", '<img src="$1" alt="$2" _fck_mw_math="$2"', $text);105 $text = preg_replace('/<img class="tex" alt="([^"]*)"/m', '<img _fckfakelement="true" _fck_mw_math="$1"', $text); 106 $text = preg_replace("/<img class='tex' src=\"([^\"]*)\" alt=\"([^\"]*)\"/m", '<img src="$1" _fckfakelement="true" _fck_mw_math="$2"', $text); 107 107 } 108 108 -
MediaWiki/trunk/extensions/FCKeditor/plugins/mediawiki/dialogs/math.html
r585 r586 98 98 99 99 SetAttribute( oMathImage, "_fck_mw_math", GetE('xTemplateRaw').value.Trim() ) ; 100 SetAttribute( oMathImage, "_fckfakelement", 'true' ) ; 100 101 101 102 oMathImage.src = response.responseText ; -
MediaWiki/trunk/extensions/FCKeditor/plugins/mediawiki/fckplugin.js
r585 r586 134 134 // Here we found an element that is not the real element, but a 135 135 // fake one (like the Flash placeholder image), so we must get the real one. 136 if ( htmlNode.getAttribute('_fckfakelement') )136 if ( htmlNode.getAttribute('_fckfakelement') && !htmlNode.getAttribute( '_fck_mw_math' ) ) 137 137 return this._AppendNode( FCK.GetRealElement( htmlNode ), stringBuilder ) ; 138 138 … … 574 574 contextMenu.AddItem( 'MW_Ref', 'Reference Properties' ) ; 575 575 } 576 if ( tag.getAttribute( '_fck_mw_math' ) ) 577 { 578 contextMenu.AddSeparator() ; 579 contextMenu.AddItem( 'MW_Math', 'Edit Formula' ) ; 580 } 576 581 } 577 582 }