[FIX] http://dev.ckeditor.com/ticket/10912, necessary for image widget edition

bzr revid: xmo@openerp.com-20131010085603-dfpxbdqwf4m75osb
This commit is contained in:
Xavier Morel
2013-10-10 10:56:03 +02:00
parent 448c9077f5
commit cb9f597d50
@@ -580,8 +580,10 @@
// Prevent the browser opening read-only links. (#6032)
this.attachListener( this, 'click', function( ev ) {
ev = ev.data;
var target = ev.getTarget();
if ( target.is( 'a' ) && ev.$.button != 2 && target.isReadOnly() )
var target = ev.getTarget(),
link = new CKEDITOR.dom.elementPath( target ).contains( 'a' );
if ( link && ev.$.button != 2 && link.isReadOnly() )
ev.preventDefault();
} );