Changeset 1449

Show
Ignore:
Timestamp:
2008-01-29 10:56:01 (9 months ago)
Author:
fredck
Message:

Fixed #1715 : The ShowDropDialog is now enforced only when ForcePasteAsPlainText = true.

Location:
FCKeditor/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/_source/internals/fck_gecko.js

    r1188 r1449  
    4646                        return ; 
    4747                } 
     48 
    4849                if ( FCKConfig.ForcePasteAsPlainText ) 
    4950                { 
     
    5758                        else if ( FCKConfig.ShowDropDialog ) 
    5859                                FCK.PasteAsPlainText() ; 
    59                 } 
    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() ; 
     60 
     61                        evt.preventDefault() ; 
     62                        evt.stopPropagation() ; 
     63                } 
    6464        } 
    6565 
  • FCKeditor/trunk/editor/_source/internals/fck_ie.js

    r1122 r1449  
    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' ) ) ; 
    112         } 
    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 ; 
     114 
     115                evt.returnValue = false ; 
     116                evt.cancelBubble = true ; 
     117        } 
    121118} 
    122119 
  • FCKeditor/trunk/_whatsnew.html

    r1434 r1449  
    6868                        attached to a shared toolbar among multiple FCKeditor instances are no longer misplaced 
    6969                        when the editing areas are absolutely or relatively positioned.</li> 
     70                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1715">#1715</a>] The ShowDropDialog 
     71                        is now enforced only when ForcePasteAsPlainText = true.</li> 
    7072        </ul> 
    7173        <p>