Ticket #2612: 2612.patch

File 2612.patch, 1.5 KB (added by Alfonso Martínez de Lizarrondo, 15 years ago)

Proposed patch

  • _whatsnew.html

     
    110110                        where new elements were inserted at the beginning of the content in IE.</li>
    111111                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2634">#2634</a>] Fixed two obsolete
    112112                        references to Array::AddItem() instances still in the code.</li>
     113                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2612">#2612</a>] The 'ForcePasteAsPlainText'
     114                        configuration option didn't work correctly in Safari and Chrome.</li>
    113115        </ul>
    114116        <p>
    115117                <a href="_whatsnew_history.html">See previous versions history</a></p>
  • editor/_source/internals/fck_gecko.js

     
    321321                                if ( FCK.Paste() )
    322322                                        FCK.ExecuteNamedCommand( 'Paste', null, true ) ;
    323323                        }
    324                         catch (e)       { FCKDialog.OpenDialog( 'FCKDialog_Paste', FCKLang.Paste, 'dialog/fck_paste.html', 400, 330, 'Security' ) ; }
     324                        catch (e)       {
     325                                if ( FCKConfig.ForcePasteAsPlainText )
     326                                        FCK.PasteAsPlainText() ;
     327                                else
     328                                        FCKDialog.OpenDialog( 'FCKDialog_Paste', FCKLang.Paste, 'dialog/fck_paste.html', 400, 330, 'Security' ) ;
     329                        }
    325330                        break ;
    326331                default :
    327332                        FCK.ExecuteNamedCommand( commandName, commandParameter ) ;
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy