Ticket #1782: 1782_2.patch
File 1782_2.patch, 1.7 KB (added by , 16 years ago) |
---|
-
_whatsnew.html
71 71 is now enforced only when ForcePasteAsPlainText = true.</li> 72 72 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1336">#1336</a>] Sometimes 73 73 the autogrow plugin didn't work properly in Firefox.</li> 74 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1782">#1782</a>] Clicking on radio 75 buttons or checkboxes in the editor in IE will no longer cause lockups in IE.</li> 74 76 </ul> 75 77 <p> 76 78 <a href="_whatsnew_history.html">See previous versions history</a> -
editor/_source/internals/fck_ie.js
138 138 139 139 // Catch cursor selection changes. 140 140 this.EditorDocument.attachEvent("onselectionchange", Doc_OnSelectionChange ) ; 141 142 FCKTools.AddEventListener( FCK.EditorDocument, 'mousedown', Doc_OnMouseDown ) ; 141 143 } 142 144 143 145 FCK.InsertHtml = function( html ) … … 430 432 431 433 return aCreatedLinks ; 432 434 } 435 436 function _FCK_RemoveDisabledAtt() 437 { 438 this.removeAttribute( 'disabled' ) ; 439 } 440 441 function 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 }