Changeset 237
- Timestamp:
- 2007-04-07 15:16:52 (21 months ago)
- Location:
- FCKeditor/trunk
- Files:
-
- 2 modified
-
editor/_source/internals/fck_ie.js (modified) (1 diff)
-
_whatsnew.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/_source/internals/fck_ie.js
r202 r237 357 357 if ( url.length > 0 ) 358 358 { 359 // If there are several images, and you try to link each one, all the images get inside the link: 360 // <img><img> -> <a><img></a><img> -> <a><img><img></a> due to the call to 'CreateLink' (bug in IE) 361 if (FCKSelection.GetType() == 'Control') 362 { 363 // Create a link 364 var oLink = this.EditorDocument.createElement( 'A' ) ; 365 oLink.href = url ; 366 367 // Get the selected object 368 var oControl = FCKSelection.GetSelectedElement() ; 369 // Put the link just before the object 370 oControl.parentNode.insertBefore(oLink, oControl) ; 371 // Move the object inside the link 372 oControl.parentNode.removeChild( oControl ) ; 373 oLink.appendChild( oControl ) ; 374 375 return oLink ; 376 } 377 359 378 // Generate a temporary name for the link. 360 379 var sTempUrl = 'javascript:void(0);/*' + ( new Date().getTime() ) + '*/' ; -
FCKeditor/trunk/_whatsnew.html
r236 r237 47 47 keep the Type attribute properly (it was converted to lowercase when the properties dialog was 48 48 opened again).</li> 49 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/318">#318</a>] Multiple linked images 50 are merged in a single link in IE.</li> 49 51 </ul> 50 52 <h3>