Ticket #1715: 1715_2.patch

File 1715_2.patch, 2.3 kB (added by fredck, 9 months ago)
  • _whatsnew.html

     
    6262                        paragraphs.</li> 
    6363                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1654">#1654</a>] The editor 
    6464                        was not loading on an specific unknown situation. The breaking point has been removed.</li> 
     65                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1715">#1715</a>] The ShowDropDialog 
     66                        is now enforced only when ForcePasteAsPlainText = true.</li> 
    6567        </ul> 
    6668        <p> 
    6769                <a href="_whatsnew_history.html">See previous versions history</a> 
  • editor/_source/internals/fck_gecko.js

     
    4545                        FCK.MouseDownFlag = false ; 
    4646                        return ; 
    4747                } 
     48 
    4849                if ( FCKConfig.ForcePasteAsPlainText ) 
    4950                { 
    5051                        if ( evt.dataTransfer ) 
     
    5657                        } 
    5758                        else if ( FCKConfig.ShowDropDialog ) 
    5859                                FCK.PasteAsPlainText() ; 
     60 
     61                        evt.preventDefault() ; 
     62                        evt.stopPropagation() ; 
    5963                } 
    60                 else if ( FCKConfig.ShowDropDialog ) 
    61                         FCKDialog.OpenDialog( 'FCKDialog_Paste', FCKLang.Paste, 'dialog/fck_paste.html', 400, 330, 'Security' ) ; 
    62                 evt.preventDefault() ; 
    63                 evt.stopPropagation() ; 
    6464        } 
    6565 
    6666        this._ExecCheckCaret = function( evt ) 
  • editor/_source/internals/fck_ie.js

     
    104104                FCK.MouseDownFlag = false ; 
    105105                return ; 
    106106        } 
    107         var evt = FCK.EditorWindow.event ; 
     107 
    108108        if ( FCKConfig.ForcePasteAsPlainText ) 
    109109        { 
     110                var evt = FCK.EditorWindow.event ; 
     111 
    110112                if ( FCK._CheckIsPastingEnabled() || FCKConfig.ShowDropDialog ) 
    111113                        FCK.PasteAsPlainText( evt.dataTransfer.getData( 'Text' ) ) ; 
     114 
     115                evt.returnValue = false ; 
     116                evt.cancelBubble = true ; 
    112117        } 
    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 ; 
    121118} 
    122119 
    123120FCK.InitializeBehaviors = function( dontReturn )