File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ CKEditor 4 Changelog
5
5
6
6
Fixed Issues:
7
7
8
+ * [ #10912 ] ( http://dev.ckeditor.com/ticket/10912 ) : Prevent default action when content of a non-editable link is clicked.
8
9
* [ #10913 ] ( http://dev.ckeditor.com/ticket/10913 ) : Fixed CKEDITOR.plugins.addExternal not handling paths including file name specified.
9
10
* [ #10666 ] ( http://dev.ckeditor.com/ticket/10666 ) : Fixed CKEDITOR.tools.isArray not working cross frame.
10
11
* [ #10910 ] ( http://dev.ckeditor.com/ticket/10910 ) : Fixed error thrown on Internet Explorer 9 in Compatibility Mode.
Original file line number Diff line number Diff line change 514
514
// Pass this configuration to styles system.
515
515
this . setCustomData ( 'cke_includeReadonly' , ! editor . config . disableReadonlyStyling ) ;
516
516
517
- // Prevent the browser opening read-only links. (#6032)
518
- this . attachListener ( this , 'click' , function ( ev ) {
519
- ev = ev . data ;
520
- var target = ev . getTarget ( ) ;
521
- if ( target . is ( 'a' ) && ev . $ . button != 2 && target . isReadOnly ( ) )
522
- ev . preventDefault ( ) ;
523
- } ) ;
517
+ // Prevent the browser opening read-only links. (#6032 & #10912)
518
+ this . attachListener ( this , 'click' , function ( evt ) {
519
+ evt = evt . data ;
520
+
521
+ var link = new CKEDITOR . dom . elementPath ( evt . getTarget ( ) , this ) . contains ( 'a' ) ;
522
+
523
+ if ( link && evt . $ . button != 2 && link . isReadOnly ( ) )
524
+ evt . preventDefault ( ) ;
525
+ } ) ;
524
526
525
527
// Override keystrokes which should have deletion behavior
526
528
// on fully selected element . (#4047) (#7645)
You can’t perform that action at this time.
0 commit comments