Changeset 612
- Timestamp:
- 2007-08-01 11:57:56 (16 months ago)
- Location:
- FCKeditor/trunk
- Files:
-
- 3 modified
-
editor/_source/internals/fck_gecko.js (modified) (1 diff)
-
editor/_source/internals/fck_ie.js (modified) (2 diffs)
-
fckconfig.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/_source/internals/fck_gecko.js
r610 r612 55 55 FCK.InsertHtml( text ) ; 56 56 } 57 else 57 else if ( FCKConfig.ShowDropDialog ) 58 58 FCK.PasteAsPlainText() ; 59 59 } 60 else 60 else if ( FCKConfig.ShowDropDialog ) 61 61 FCKDialog.OpenDialog( 'FCKDialog_Paste', FCKLang.Paste, 'dialog/fck_paste.html', 400, 330, 'Security' ) ; 62 62 evt.preventDefault() ; -
FCKeditor/trunk/editor/_source/internals/fck_ie.js
r610 r612 105 105 var evt = FCK.EditorWindow.event ; 106 106 if ( FCKConfig.ForcePasteAsPlainText ) 107 FCK.PasteAsPlainText( evt.dataTransfer.getData( 'Text' ) ) ; 107 { 108 if ( FCK._CheckIsPastingEnabled() || FCKConfig.ShowDropDialog ) 109 FCK.PasteAsPlainText( evt.dataTransfer.getData( 'Text' ) ) ; 110 } 108 111 else 109 FCKTools.RunFunction( FCKDialog.OpenDialog, FCKDialog, ['FCKDialog_Paste', FCKLang.Paste, 'dialog/fck_paste.html', 400, 330, 'Security'] ) ; 112 { 113 if ( FCKConfig.ShowDropDialog ) 114 FCKTools.RunFunction( FCKDialog.OpenDialog, 115 FCKDialog, ['FCKDialog_Paste', FCKLang.Paste, 'dialog/fck_paste.html', 400, 330, 'Security'] ) ; 116 } 110 117 evt.returnValue = false ; 111 118 evt.cancelBubble = true ; 112 }113 114 function Doc_CancelDragDefault()115 {116 if ( FCK._MouseDownFlag )117 return ;118 FCK.EditorWindow.event.returnValue = false ;119 119 } 120 120 … … 129 129 130 130 // Intercept drop operations 131 this.EditorDocument.body.attachEvent( 'ondragenter', Doc_CancelDragDefault ) ;132 this.EditorDocument.body.attachEvent( 'ondragover', Doc_CancelDragDefault ) ;133 131 this.EditorDocument.body.attachEvent( 'ondrop', Doc_OnDrop ) ; 134 132 -
FCKeditor/trunk/fckconfig.js
r591 r612 79 79 FCKConfig.ForcePasteAsPlainText = false ; 80 80 FCKConfig.AutoDetectPasteFromWord = true ; // IE only. 81 FCKConfig.ShowDropDialog = true ; 81 82 FCKConfig.ForceSimpleAmpersand = false ; 82 83 FCKConfig.TabSpaces = 0 ;