Changeset 1941 for MediaWiki/trunk/FCKeditor.body.php
- Timestamp:
- 2008-04-22 14:03:31 (7 months ago)
- Files:
-
- 1 modified
-
MediaWiki/trunk/FCKeditor.body.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
MediaWiki/trunk/FCKeditor.body.php
r1929 r1941 124 124 return true; 125 125 } 126 127 public function onSanitizerAfterFixTagAttributes($text, $element, &$attribs) 128 { 129 $text = preg_match_all("/Fckmw\d+fckmw/", $text, $matches); 130 131 if (!empty($matches[0][0])) { 132 global $leaveRawTemplates; 133 if (!isset($leaveRawTemplates)) { 134 $leaveRawTemplates = array(); 135 } 136 $leaveRawTemplates = array_merge($leaveRawTemplates, $matches[0]); 137 $attribs = array_merge($attribs, $matches[0]); 138 } 139 140 return true; 141 } 126 142 127 143 public function registerHooks() { … … 139 155 $wgHooks['ParserBeforeInternalParse'][] = array($this, "onParserBeforeInternalParse"); 140 156 $wgHooks['EditPageBeforeConflictDiff'][] = array($this, 'onEditPageBeforeConflictDiff'); 157 $wgHooks['SanitizerAfterFixTagAttributes'][] = array($this, 'onSanitizerAfterFixTagAttributes'); 141 158 142 159 if ($this->debug) {