Ticket #5926: 5926.patch

File 5926.patch, 801 bytes (added by Sa'ar Zac Elias, 14 years ago)
  • _source/plugins/clipboard/plugin.js

     
    393393                                                                cut : !readOnly && stateFromNamedCommand( 'Cut' ),
    394394
    395395                                                                // Browser bug: 'Cut' has the correct states for both Copy and Cut.
    396                                                                 copy : stateFromNamedCommand( 'Cut' ),
     396                                                                // In IE and Chrome the command is always off inside readOnly element, so we have to check it manually (#5926)
     397                                                                copy : stateFromNamedCommand( 'Cut' ) || ( readOnly && !selection.getRanges()[0].collapsed ),
    397398                                                                paste : !readOnly && ( CKEDITOR.env.webkit ? CKEDITOR.TRISTATE_OFF : stateFromNamedCommand( 'Paste' ) )
    398399                                                        };
    399400                                                });
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy