Ticket #6032: 6032.patch

File 6032.patch, 662 bytes (added by Frederico Caldeira Knabben, 13 years ago)
  • _source/plugins/wysiwygarea/plugin.js

     
    483483                                                        } );
    484484                                                }
    485485
     486                                                // Prevent the browser opening links in read-only blocks. (#6032)
     487                                                domDocument.on( 'click', function( ev )
     488                                                        {
     489                                                                ev = ev.data;
     490                                                                if ( ev.getTarget().is( 'a' ) && ev.$.button != 2 )
     491                                                                        ev.preventDefault();
     492                                                        });
     493
    486494                                                // Webkit: avoid from editing form control elements content.
    487495                                                if ( CKEDITOR.env.webkit )
    488496                                                {
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy