Ticket #1715: 1715.patch

File 1715.patch, 1.9 kB (added by fredck, 6 months ago)

Patch for trunk r1232

  • _whatsnew.html

     
    4545        <ul> 
    4646                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1643">#1643</a>] Resolved 
    4747                        several "strict warning" messages in Firefox when running FCKeditor.</li> 
     48                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1715">#1715</a>] The ShowDropDialog 
     49                        is now enforced only when ForcePasteAsPlainText = true.</li> 
    4850        </ul> 
    4951        <p> 
    5052                <a href="_whatsnew_history.html">See previous versions history</a> 
  • editor/_source/internals/fck_gecko.js

     
    5757                        else if ( FCKConfig.ShowDropDialog ) 
    5858                                FCK.PasteAsPlainText() ; 
    5959                } 
    60                 else if ( FCKConfig.ShowDropDialog ) 
    61                         FCKDialog.OpenDialog( 'FCKDialog_Paste', FCKLang.Paste, 'dialog/fck_paste.html', 400, 330, 'Security' ) ; 
     60                else 
     61                        return ; 
     62 
    6263                evt.preventDefault() ; 
    6364                evt.stopPropagation() ; 
    6465        } 
  • editor/_source/internals/fck_ie.js

     
    109109        { 
    110110                if ( FCK._CheckIsPastingEnabled() || FCKConfig.ShowDropDialog ) 
    111111                        FCK.PasteAsPlainText( evt.dataTransfer.getData( 'Text' ) ) ; 
     112 
     113                evt.returnValue = false ; 
     114                evt.cancelBubble = true ; 
    112115        } 
    113         else 
    114         { 
    115                 if ( FCKConfig.ShowDropDialog )  
    116                         FCKTools.RunFunction( FCKDialog.OpenDialog,  
    117                                 FCKDialog, ['FCKDialog_Paste', FCKLang.Paste, 'dialog/fck_paste.html', 400, 330, 'Security'] ) ; 
    118         } 
    119         evt.returnValue = false ; 
    120         evt.cancelBubble = true ; 
    121116} 
    122117 
    123118FCK.InitializeBehaviors = function( dontReturn )