Ticket #6987: 6987.patch
File 6987.patch, 1.1 KB (added by , 13 years ago) |
---|
-
_source/plugins/selection/plugin.js
134 134 // point. 135 135 if ( savedRange ) 136 136 { 137 // Range restored here might invalidate the DOM structure thus break up 138 // the locked selection, give it up. (#6083) 139 var lockedSelection = doc.getCustomData( 'cke_locked_selection' ); 140 if ( restoreEnabled && !lockedSelection ) 137 if ( restoreEnabled ) 141 138 { 142 139 // Well not break because of this. 143 140 try … … 146 143 } 147 144 catch (e) 148 145 {} 149 } 146 147 // Update locked selection because of the normalized text nodes. (#6083, #6987) 148 var lockedSelection = doc.getCustomData( 'cke_locked_selection' ); 149 if ( lockedSelection ) 150 { 151 lockedSelection.unlock(); 152 lockedSelection.lock(); 153 } 154 } 150 155 151 156 savedRange = null; 152 157 }