Changeset 162

Show
Ignore:
Timestamp:
2007-02-25 13:52:33 (3 years ago)
Author:
alfonsoml
Message:

Fix for #113, #94, SF BUG 1659270: ForcePasteAsPlainText didn't work in Firefox

Location:
FCKeditor/trunk
Files:
2 modified

Legend:

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

    r151 r162  
    204204        // TODO: Implement the "Paste as Plain Text" code. 
    205205 
    206         FCKDialog.OpenDialog( 'FCKDialog_Paste', FCKLang.PasteAsText, 'dialog/fck_paste.html', 400, 330, 'PlainText' ) ; 
     206        // If the function is called inmediately Firefox 2 does automatically paste the contents as soon as the new dialog is created 
     207        // so we run it in a Timeout and the paste event can be cancelled 
     208        FCKTools.RunFunction( FCKDialog.OpenDialog, FCKDialog, ['FCKDialog_Paste', FCKLang.PasteAsText, 'dialog/fck_paste.html', 400, 330, 'PlainText'] ) ; 
    207209 
    208210/* 
  • FCKeditor/trunk/_whatsnew.html

    r153 r162  
    3535                New Features and Improvements:</p> 
    3636        <ul> 
    37                 <li>&lt;none&gt;</li></ul> 
     37                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/118">Ticket-118</a>]  
     38                        The SelectAll command now is available in Source Mode.</li> 
    3839        <p> 
    3940                Fixed Bugs:</p> 
     
    6263                <li>[<a target="_blank" href="https://sourceforge.net/tracker/?func=detail&aid=1573191&group_id=75348&atid=543653">SF 
    6364                        BUG-1573191</a>] The Html code inserted with FCK.InsertHtml didn't have the same protection for special tags.</li> 
    64                 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/118">Ticket-118</a>]  
    65                         The SelectAll command now is available in Source Mode.</li> 
    6665                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/110">Ticket-110</a>]  
    6766                        The OK button in dialogs had its width set as an inline style.</li> 
     67                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/113">Ticket-113</a>]  
     68                [<a target="_blank" href="http://dev.fckeditor.net/ticket/94">Ticket-94</a>]  
     69                [<a target="_blank" href="https://sourceforge.net/tracker/?func=detail&aid=1659270&group_id=75348&atid=543653">SF 
     70                        BUG-1659270</a>] ForcePasteAsPlainText didn't work in Firefox.</li> 
    6871        </ul> 
    6972        <h3>