Changeset 1677 for FCKeditor/branches

Show
Ignore:
Timestamp:
2008-03-04 09:48:33 (9 months ago)
Author:
martinkou
Message:

Fixed JavaScript error when document processor is processing <object> and <embed> tags with width and height attributes.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/branches/features/generic_plugin/editor/_source/internals/fckdocumentprocessor.js

    r1675 r1677  
    255255                        { 
    256256                                if ( original.getAttribute( 'width' ) > 0 ) 
    257                                         placeHolderImage.style.width = FCKTools.ConvertHtmlSizeToStyle( original.getAttribute( 'width' ) ) ; 
     257                                        placeHolder.style.width = FCKTools.ConvertHtmlSizeToStyle( original.getAttribute( 'width' ) ) ; 
    258258 
    259259                                if ( original.getAttribute( 'height' ) > 0 ) 
    260                                         placeHolderImage.style.height = FCKTools.ConvertHtmlSizeToStyle( original.getAttribute( 'height' ) ) ; 
     260                                        placeHolder.style.height = FCKTools.ConvertHtmlSizeToStyle( original.getAttribute( 'height' ) ) ; 
    261261                        } 
    262262                }, 
     
    275275                        { 
    276276                                if ( original.getAttribute( 'width' ) > 0 ) 
    277                                         placeHolderImage.style.width = FCKTools.ConvertHtmlSizeToStyle( original.getAttribute( 'width' ) ) ; 
     277                                        placeHolder.style.width = FCKTools.ConvertHtmlSizeToStyle( original.getAttribute( 'width' ) ) ; 
    278278 
    279279                                if ( original.getAttribute( 'height' ) > 0 ) 
    280                                         placeHolderImage.style.height = FCKTools.ConvertHtmlSizeToStyle( original.getAttribute( 'height' ) ) ; 
     280                                        placeHolder.style.height = FCKTools.ConvertHtmlSizeToStyle( original.getAttribute( 'height' ) ) ; 
    281281                        } 
    282282                }