Changeset 283

Show
Ignore:
Timestamp:
2007-05-04 20:24:59 (3 years ago)
Author:
alfonsoml
Message:

Fix for #430, Links with a class did generate a span in Firefox when removing them.

Location:
FCKeditor/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/_source/commandclasses/fck_othercommands.js

    r174 r283  
    299299        { 
    300300                var oLink = FCK.Selection.MoveToAncestorNode( 'A' ) ; 
     301                // The unlink command can generate a span in Firefox, so let's do it our way. See #430 
    301302                if ( oLink ) 
    302                         FCK.Selection.SelectNode( oLink ) ; 
    303         } 
    304  
     303                        FCKTools.RemoveOuterTags( oLink ) 
     304 
     305                return ; 
     306        } 
     307         
    305308        FCK.ExecuteNamedCommand( this.Name ) ; 
    306  
    307         if ( FCKBrowserInfo.IsGecko ) 
    308                 FCK.Selection.Collapse( true ) ; 
    309309} 
    310310 
  • FCKeditor/trunk/_whatsnew.html

    r281 r283  
    6868                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/451">#451</a>] Classes for 
    6969                        images in IE didn't take effect immediately.</li> 
     70                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/430">#430</a>] Links with a class 
     71                        did generate a span in Firefox when removing them.</li> 
    7072        </ul> 
    7173        <h3>