Ticket #6511: 6511.patch

File 6511.patch, 664 bytes (added by WebSpellChecker.net, 13 years ago)
  • _source/plugins/scayt/plugin.js

     
    622622                                editor.contextMenu.addListener( function( element, selection )
    623623                                        {
    624624                                                if ( !plugin.isScaytEnabled( editor )
    625                                                                 || selection.getCommonAncestor().isReadOnly() )
     625                                                                || ( selection.getRanges().length && selection.getCommonAncestor().isReadOnly() ) )
    626626                                                        return null;
    627627
    628628                                                var scayt_control = plugin.getScayt( editor ),
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy