Ticket #4164: 4164.patch

File 4164.patch, 578 bytes (added by Artur Formella, 15 years ago)
  • _source/plugins/pastetext/plugin.js

     
    4646                        {
    4747                                editor.on( 'beforePaste', function( event )
    4848                                        {
    49                                                 setTimeout( function() { command.exec(); }, 0 );
    50                                                 event.cancel();
     49                                                if ( editor.mode == "wysiwyg" )
     50                                                {
     51                                                        setTimeout( function() { command.exec(); }, 0 );
     52                                                        event.cancel();
     53                                                }
    5154                                        },
    5255                                        null, null, 20 );
    5356                        }
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy