Changeset 1467

Show
Ignore:
Timestamp:
2008-02-04 05:34:48 (7 months ago)
Author:
martinkou
Message:

Fixed #1782 : Clicking on radio buttons or checkboxes in the editor in IE will no longer cause lockups in IE.

Location:
FCKeditor/trunk
Files:
2 modified

Legend:

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

    r1449 r1467  
    139139        // Catch cursor selection changes. 
    140140        this.EditorDocument.attachEvent("onselectionchange", Doc_OnSelectionChange ) ; 
     141 
     142        FCKTools.AddEventListener( FCK.EditorDocument, 'mousedown', Doc_OnMouseDown ) ; 
    141143} 
    142144 
     
    431433        return aCreatedLinks ; 
    432434} 
     435 
     436function _FCK_RemoveDisabledAtt() 
     437{ 
     438        this.removeAttribute( 'disabled' ) ; 
     439} 
     440 
     441function Doc_OnMouseDown( evt ) 
     442{ 
     443        var e = evt.srcElement ; 
     444 
     445        // Radio buttons and checkboxes should not be allowed to be triggered in IE 
     446        // in editable mode. Otherwise the whole browser window may be locked by 
     447        // the buttons. (#1782) 
     448        if ( e.nodeName.IEquals( 'input' ) && e.type.IEquals( ['radio', 'checkbox'] ) && !e.disabled ) 
     449        { 
     450                e.disabled = true ; 
     451                FCKTools.SetTimeout( _FCK_RemoveDisabledAtt, 1, e ) ; 
     452        } 
     453} 
  • FCKeditor/trunk/_whatsnew.html

    r1466 r1467  
    7474                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1728">#1728</a>] External toolbars 
    7575                        are now properly sized in Opera.</li> 
     76                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1782">#1782</a>] Clicking on radio 
     77                        buttons or checkboxes in the editor in IE will no longer cause lockups in IE.</li> 
    7678        </ul> 
    7779        <p>