Ticket #3305: 3305.patch
File 3305.patch, 801 bytes (added by , 14 years ago) |
---|
-
_source/plugins/selection/plugin.js
259 259 */ 260 260 CKEDITOR.dom.document.prototype.getSelection = function() 261 261 { 262 return new CKEDITOR.dom.selection( this ); 262 var sel = new CKEDITOR.dom.selection( this ); 263 return ( !sel || sel.isInvalid ) ? null : sel; 263 264 }; 264 265 265 266 /** … … 319 320 || ( range.item && range.item(0).ownerDocument != this.document.$ ) 320 321 || ( range.parentElement && range.parentElement().ownerDocument != this.document.$ ) ) 321 322 { 322 return null;323 this.isInvalid = true; 323 324 } 324 325 } 325 326 return this;327 326 }; 328 327 329 328 var styleObjectElements =