Changeset 1834 for MediaWiki/trunk/mw12/FCKeditorParser_OldPP.body.php
- Timestamp:
- 2008-03-28 16:56:36 (6 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
MediaWiki/trunk/mw12/FCKeditorParser_OldPP.body.php
r1829 r1834 47 47 $key = 'Fckmw'.$this->fck_mw_strtr_span_counter.'fckmw'; 48 48 $this->fck_mw_strtr_span_counter++; 49 $this->fck_mw_strtr_span[$key] = $text;49 $this->fck_mw_strtr_span[$key] = str_replace(array("\r\n", "\n", "\r"),"fckLR",$text); 50 50 return $key; 51 51 } … … 59 59 */ 60 60 function fck_genericTagHook( $str, $argv, $parser ) { 61 if (in_array($this->fck_mw_taghook, array("ref", "math", "references"))) { 62 $class = $this->fck_mw_taghook; 63 } 64 else { 65 $class = "special"; 66 } 67 61 68 if (empty($argv)) { 62 $ret = "<span class=\"fck_mw_".$ this->fck_mw_taghook."\" _fck_mw_customtag=\"true\" _fck_mw_tagname=\"".$this->fck_mw_taghook."\">";69 $ret = "<span class=\"fck_mw_".$class."\" _fck_mw_customtag=\"true\" _fck_mw_tagname=\"".$this->fck_mw_taghook."\">"; 63 70 } 64 71 else { 65 $ret = "<span class=\"fck_mw_".$ this->fck_mw_taghook."\" _fck_mw_customtag=\"true\" _fck_mw_tagname=\"".$this->fck_mw_taghook."\"";72 $ret = "<span class=\"fck_mw_".$class."\" _fck_mw_customtag=\"true\" _fck_mw_tagname=\"".$this->fck_mw_taghook."\""; 66 73 foreach ($argv as $key=>$value) { 67 74 $ret .= " ".$key."=\"".$value."\""; … … 91 98 function fck_wikiTag( $tagName, $str, $argv = array()) { 92 99 if (empty($argv)) { 93 $ret = "<span class=\"fck_mw_".$tagName."\" >";100 $ret = "<span class=\"fck_mw_".$tagName."\" _fck_mw_customtag=\"true\" _fck_mw_tagname=\"".$tagName."\">"; 94 101 } 95 102 else { 96 $ret = "<span class=\"fck_mw_".$tagName."\" ";103 $ret = "<span class=\"fck_mw_".$tagName."\" _fck_mw_customtag=\"true\" _fck_mw_tagname=\"".$tagName."\">"; 97 104 foreach ($argv as $key=>$value) { 98 105 $ret .= " ".$key."=\"".$value."\"";