Changeset 1062
- Timestamp:
- 2007-11-03 11:59:38 (2 years ago)
- Location:
- FCKeditor/trunk/editor/_source/internals
- Files:
-
- 4 modified
-
fck.js (modified) (1 diff)
-
fckregexlib.js (modified) (1 diff)
-
fckxhtml_ie.js (modified) (2 diffs)
-
fckxhtml.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/_source/internals/fck.js
r988 r1062 287 287 html = html.replace( FCKRegexLib.ProtectUrlsImg , '$& _fcksavedurl=$1' ) ; 288 288 289 // <AREA> href 290 html = html.replace( FCKRegexLib.ProtectUrlsArea , '$& _fcksavedurl=$1' ) ; 291 289 292 return html ; 290 293 }, -
FCKeditor/trunk/editor/_source/internals/fckregexlib.js
r851 r1062 75 75 ProtectUrlsImg : /<img(?=\s).*?\ssrc=((?:(?:\s*)("|').*?\2)|(?:[^"'][^ >]+))/gi , 76 76 ProtectUrlsA : /<a(?=\s).*?\shref=((?:(?:\s*)("|').*?\2)|(?:[^"'][^ >]+))/gi , 77 ProtectUrlsArea : /<area(?=\s).*?\shref=((?:(?:\s*)("|').*?\2)|(?:[^"'][^ >]+))/gi , 77 78 78 79 Html4DocType : /HTML 4\.0 Transitional/i , -
FCKeditor/trunk/editor/_source/internals/fckxhtml_ie.js
r706 r1062 139 139 } 140 140 141 // IE ignores the "COORDS" and "SHAPE" attribute so we must add it manually.142 FCKXHtml.TagProcessors['area'] = function( node, htmlNode )143 {144 if ( ! node.attributes.getNamedItem( 'coords' ) )145 {146 var sCoords = htmlNode.getAttribute( 'coords', 2 ) ;147 if ( sCoords && sCoords != '0,0,0' )148 FCKXHtml._AppendAttribute( node, 'coords', sCoords ) ;149 }150 151 if ( ! node.attributes.getNamedItem( 'shape' ) )152 {153 var sShape = htmlNode.getAttribute( 'shape', 2 ) ;154 if ( sShape && sShape.length > 0 )155 FCKXHtml._AppendAttribute( node, 'shape', sShape.toLowerCase() ) ;156 }157 158 return node ;159 }160 161 141 FCKXHtml.TagProcessors['label'] = function( node, htmlNode ) 162 142 { … … 207 187 return node ; 208 188 } 189 190 // Fix behavior for IE, it doesn't read back the .name on newly created maps 191 FCKXHtml.TagProcessors['map'] = function( node, htmlNode ) 192 { 193 if ( ! node.attributes.getNamedItem( 'name' ) ) 194 { 195 var name = htmlNode.name ; 196 if ( name ) 197 FCKXHtml._AppendAttribute( node, 'name', name ) ; 198 } 199 200 node = FCKXHtml._AppendChildNodes( node, htmlNode, true ) ; 201 202 return node ; 203 } -
FCKeditor/trunk/editor/_source/internals/fckxhtml.js
r1032 r1062 453 453 node.removeAttribute( 'spellcheck' ) ; 454 454 return node ; 455 } 455 }, 456 457 area : function( node, htmlNode ) 458 { 459 var sSavedUrl = htmlNode.getAttribute( '_fcksavedurl' ) ; 460 if ( sSavedUrl != null ) 461 FCKXHtml._AppendAttribute( node, 'href', sSavedUrl ) ; 462 463 // IE ignores the "COORDS" and "SHAPE" attribute so we must add it manually. 464 if ( FCKBrowserInfo.IsIE ) 465 { 466 if ( ! node.attributes.getNamedItem( 'coords' ) ) 467 { 468 var sCoords = htmlNode.getAttribute( 'coords', 2 ) ; 469 if ( sCoords && sCoords != '0,0,0' ) 470 FCKXHtml._AppendAttribute( node, 'coords', sCoords ) ; 471 } 472 473 if ( ! node.attributes.getNamedItem( 'shape' ) ) 474 { 475 var sShape = htmlNode.getAttribute( 'shape', 2 ) ; 476 if ( sShape && sShape.length > 0 ) 477 FCKXHtml._AppendAttribute( node, 'shape', sShape.toLowerCase() ) ; 478 } 479 } 480 481 return node ; 482 } 483 456 484 } ; 457 485