Changeset 281

Show
Ignore:
Timestamp:
2007-05-04 17:06:18 (3 years ago)
Author:
alfonsoml
Message:

Fix for #451, the "class" attribute for the images didn't work immediately in IE.

Location:
FCKeditor/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/dialog/fck_image/fck_image.js

    r132 r281  
    169169        if ( oEditor.FCKBrowserInfo.IsIE ) 
    170170        { 
    171                 GetE('txtAttClasses').value = oImage.getAttribute('className') || '' ; 
     171                GetE('txtAttClasses').value = oImage.className || '' ; 
    172172                GetE('txtAttStyle').value = oImage.style.cssText ; 
    173173        } 
     
    285285        SetAttribute( e, 'lang'         , GetE('txtAttLangCode').value ) ; 
    286286        SetAttribute( e, 'title'        , GetE('txtAttTitle').value ) ; 
    287         SetAttribute( e, 'class'        , GetE('txtAttClasses').value ) ; 
    288287        SetAttribute( e, 'longDesc'     , GetE('txtLongDesc').value ) ; 
    289288 
    290289        if ( oEditor.FCKBrowserInfo.IsIE ) 
     290        { 
     291                e.className = GetE('txtAttClasses').value ; 
    291292                e.style.cssText = GetE('txtAttStyle').value ; 
    292         else 
     293        } 
     294        else 
     295        { 
     296                SetAttribute( e, 'class'        , GetE('txtAttClasses').value ) ; 
    293297                SetAttribute( e, 'style', GetE('txtAttStyle').value ) ; 
     298        } 
    294299} 
    295300 
  • FCKeditor/trunk/_whatsnew.html

    r270 r281  
    6666                        in a directory with spaces in the name.</li> 
    6767                <li>Added option to SpellerPages to ignore "alt" attributes.</li> 
     68                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/451">#451</a>] Classes for 
     69                        images in IE didn't take effect immediately.</li> 
    6870        </ul> 
    6971        <h3>