Changeset 147
- Timestamp:
- 2007-02-18 14:45:13 (3 years ago)
- Location:
- FCKeditor/trunk
- Files:
-
- 2 modified
-
editor/_source/internals/fckdocumentprocessor.js (modified) (2 diffs)
-
_whatsnew.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/_source/internals/fckdocumentprocessor.js
r143 r147 134 134 while ( i >= 0 && ( oEmbed = aEmbeds[i--] ) ) 135 135 { 136 if ( oEmbed.src.EndsWith( '.swf', true ) ) 136 // IE doesn't return the type attribute with oEmbed.type or oEmbed.getAttribute("type") 137 // But it turns out that after accessing it then it doesn't gets copied later 138 var oType = oEmbed.attributes[ 'type' ] ; 139 140 // Check the extension and the type. Now it should be enough with just the type 141 // Opera doesn't return oEmbed.src so oEmbed.src.EndsWith will fail 142 if ( (oEmbed.src && oEmbed.src.EndsWith( '.swf', true )) || ( oType && oType.nodeValue == 'application/x-shockwave-flash' ) ) 137 143 { 138 144 var oCloned = oEmbed.cloneNode( true ) ; … … 148 154 if ( oAtt ) oCloned.setAttribute( aAttributes[iAtt], oAtt ) ; 149 155 } 156 // It magically gets lost after reading it in oType 157 oCloned.setAttribute( 'type', oType.nodeValue ) ; 150 158 } 151 159 -
FCKeditor/trunk/_whatsnew.html
r146 r147 55 55 <li>[<a target="_blank" href="https://sourceforge.net/tracker/?func=detail&atid=543653&aid=1288609&group_id=75348">SF 56 56 BUG-1288609</a>] The content of iframes are preserved.</li> 57 <li>[<a target="_blank" href="https://sourceforge.net/tracker/?func=detail&atid=543653&aid=1245504&group_id=75348">SF 58 BUG-1245504</a>] [<a target="_blank" href="https://sourceforge.net/tracker/?func=detail&atid=543653&aid=1652240&group_id=75348">SF 59 BUG-1652240</a>] Flash files without the .swf extension weren't recognized upon reload.</li> 57 60 </ul> 58 61 <h3>