1107 | | var sel = editor.getSelection(); |
1108 | | // Do it only when selection is not locked. (#8222) |
1109 | | if ( sel && !sel.isLocked ) |
1110 | | { |
1111 | | var isDirty = editor.checkDirty(); |
1112 | | onSelectionChangeFixBody.apply( this, arguments ); |
1113 | | editor.fire( 'updateSnapshot' ); |
1114 | | !isDirty && editor.resetDirty(); |
1115 | | } |
| 1107 | CKEDITOR.tools.setTimeout( function() { |
| 1108 | var sel = editor.getSelection(); |
| 1109 | // Do it only when selection is not locked. (#8222) |
| 1110 | if ( sel && !sel.isLocked ) |
| 1111 | { |
| 1112 | var isDirty = editor.checkDirty(); |
| 1113 | onSelectionChangeFixBody.call( this, evt ); |
| 1114 | editor.fire( 'updateSnapshot' ); |
| 1115 | !isDirty && editor.resetDirty(); |
| 1116 | } |
| 1117 | }, 0, this ); |
| 1118 | |