Ticket #1782: 1782.patch
File 1782.patch, 2.4 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.js
917 917 FCKTools.AddEventListener( FCK.EditorDocument, 'mousedown', _FCK_MouseEventsListener ) ; 918 918 FCKTools.AddEventListener( FCK.EditorDocument, 'mouseup', _FCK_MouseEventsListener ) ; 919 919 920 // Fix for #1782 : Radio buttons and checkboxes should not be allowed to be triggered in IE in editable mode. 921 // Otherwise the whole browser window may be locked by the buttons. 922 if ( FCKBrowserInfo.IsIE ) 923 FCKTools.AddEventListener( FCK.EditorDocument, 'mousedown', _FCK_FixCheckboxRadioButtonSelection ) ; 924 920 925 // Most of the CTRL key combos do not work under Safari for onkeydown and onkeypress (See #1119) 921 926 // But we can use the keyup event to override some of these... 922 927 if ( FCKBrowserInfo.IsSafari ) -
editor/_source/internals/fck_ie.js
430 430 431 431 return aCreatedLinks ; 432 432 } 433 434 _FCK_FixCheckboxRadioButtonSelection_Next = function() 435 { 436 this.removeAttribute( 'disabled' ) ; 437 if ( this._fck_wasDisabled ) 438 this.disabled = true ; 439 this.removeAttribute( '_fck_wasDisabled' ) ; 440 } 441 442 _FCK_FixCheckboxRadioButtonSelection = function( evt ) 443 { 444 var e = evt.srcElement ; 445 if ( e.nodeName.IEquals( 'input' ) && e.type.IEquals( ['radio', 'checkbox'] ) ) 446 { 447 e._fck_wasDisabled = e.disabled ; 448 e.disabled = true ; 449 FCKTools.SetTimeout( _FCK_FixCheckboxRadioButtonSelection_Next, 50, e ) ; 450 } 451 }