Ticket #4682: 4682.patch
File 4682.patch, 1.6 KB (added by , 14 years ago) |
---|
-
_source/plugins/selection/plugin.js
108 108 // "onfocusin" is fired before "onfocus". It makes it 109 109 // possible to restore the selection before click 110 110 // events get executed. 111 body.on( 'focusin', function( )111 body.on( 'focusin', function(evt) 112 112 { 113 // If there are elements with layout they fire this event but 114 // it must be ignored to allow edit its contents #4682 115 if ( evt.data.$.srcElement.nodeName !== 'BODY' ) 116 return; 117 113 118 // If we have saved a range, restore it at this 114 119 // point. 115 120 if ( savedRange ) … … 143 148 // editor blurred unless we clean up the selection. (#4716) 144 149 if ( CKEDITOR.env.ie && CKEDITOR.env.version < 8 ) 145 150 { 146 // IE stack overflows when we're doing so inside table. (#5114) 151 // IE stack overflows when we're doing so inside table. (#5114) 152 // or an element with layout #4682 147 153 var parent = 148 154 savedRange 149 155 && savedRange.parentElement 150 156 && savedRange.parentElement(); 151 157 152 if( !( parent && parent.tagName.toLowerCase() in CKEDITOR.dtd.$tableContent) )158 if( !( parent && (parent.tagName.toLowerCase() in CKEDITOR.dtd.$tableContent || parent.currentStyle.hasLayout) ) ) 153 159 editor.document.$.selection.empty(); 154 160 } 155 161 });