Changeset 602
- Timestamp:
- 2007-07-31 13:39:55 (3 years ago)
- Location:
- FCKeditor/trunk/editor/_source/internals
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/_source/internals/fck_gecko.js
r599 r602 41 41 this._ExecDrop = function( evt ) 42 42 { 43 if ( FCK._MouseDownFlag ) 44 return ; 43 45 if ( FCKConfig.ForcePasteAsPlainText ) 44 46 { -
FCKeditor/trunk/editor/_source/internals/fck_ie.js
r590 r602 98 98 function Doc_OnDrop() 99 99 { 100 if ( FCK._MouseDownFlag ) 101 return ; 100 102 var evt = FCK.EditorWindow.event ; 101 103 if ( FCKConfig.ForcePasteAsPlainText ) -
FCKeditor/trunk/editor/_source/internals/fck.js
r594 r602 761 761 } 762 762 763 function _FCK_MouseEventsListener( evt ) 764 { 765 if ( ! evt ) 766 evt = window.event ; 767 if ( evt.type == 'mousedown' ) 768 FCK._MouseDownFlag = true ; 769 else if ( evt.type == 'mouseup' ) 770 FCK._MouseDownFlag = false ; 771 } 772 763 773 function _FCK_EditingArea_OnLoad() 764 774 { … … 768 778 769 779 FCK.InitializeBehaviors() ; 780 781 // Listen for mousedown and mouseup events for tracking drag and drops. 782 FCK._MouseDownFlag = false ; 783 FCKTools.AddEventListener( FCK.EditorDocument, 'mousedown', _FCK_MouseEventsListener ) ; 784 FCKTools.AddEventListener( FCK.EditorDocument, 'mouseup', _FCK_MouseEventsListener ) ; 770 785 771 786 // Create the enter key handler