Changeset 401

Show
Ignore:
Timestamp:
2007-06-30 23:07:29 (17 months ago)
Author:
fredck
Message:

Fixed #497: Fixed EMBED attributes handling in IE. The EMBED tag is now being "protected", which makes IE handling its attributes correctly (not loosing them actually).

Location:
FCKeditor/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/_source/internals/fckdocumentprocessor.js

    r249 r401  
    144144                        var oCloned = oEmbed.cloneNode( true ) ; 
    145145 
    146                         // On IE, some properties are not getting clonned properly, so we 
    147                         // must fix it. Thanks to Alfonso Martinez. 
    148                         if ( FCKBrowserInfo.IsIE ) 
    149                         { 
    150                                 var aAttributes = [ 'scale', 'play', 'loop', 'menu', 'wmode', 'quality' ] ; 
    151                                 for ( var iAtt = 0 ; iAtt < aAttributes.length ; iAtt++ ) 
    152                                 { 
    153                                         var oAtt = oEmbed.getAttribute( aAttributes[iAtt] ) ; 
    154                                         if ( oAtt ) oCloned.setAttribute( aAttributes[iAtt], oAtt ) ; 
    155                                 } 
    156                                 // It magically gets lost after reading it in oType 
    157                                 oCloned.setAttribute( 'type', oType.nodeValue ) ; 
    158                         } 
    159  
    160146                        var oImg = FCKDocumentProcessor_CreateFakeImage( 'FCK__Flash', oCloned ) ; 
    161147                        oImg.setAttribute( '_fckflash', 'true', 0 ) ; 
     
    165151                        oEmbed.parentNode.insertBefore( oImg, oEmbed ) ; 
    166152                        oEmbed.parentNode.removeChild( oEmbed ) ; 
    167  
    168 //                      oEmbed.setAttribute( '_fcktemp', 'true', 0) ; 
    169 //                      oEmbed.style.display = 'none' ; 
    170 //                      oEmbed.hidden = true ; 
    171153                } 
    172154        } 
  • FCKeditor/trunk/editor/_source/internals/fck.js

    r400 r401  
    298298                // IE doesn't support <abbr> and it breaks it. Let's protect it. 
    299299                if ( FCKBrowserInfo.IsIE ) 
    300                         sTags += sTags.length > 0 ? '|ABBR|XML' : 'ABBR|XML' ; 
     300                        sTags += sTags.length > 0 ? '|ABBR|XML|EMBED' : 'ABBR|XML|EMBED' ; 
    301301 
    302302                var oRegex ; 
  • FCKeditor/trunk/_whatsnew.html

    r400 r401  
    5656                        Patch 1511298</a>] The CF Component failed on CFMX 6.0</li> 
    5757                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/639">#639</a>] If the  
    58                         FCKConfig.DefaultLinkTarget setting was missing in fckconfig.js the links has target="undefined"</li> 
     58                        FCKConfig.DefaultLinkTarget setting was missing in fckconfig.js the links has target="undefined".</li> 
     59                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/497">#497</a>] Fixed EMBED 
     60                        attributes handling in IE.</li> 
    5961        </ul> 
    6062        <h3>