Ticket #8632: 8632.patch
File 8632.patch, 1.0 KB (added by , 12 years ago) |
---|
-
_source/plugins/selection/plugin.js
1198 1198 1199 1199 walker.guard = guard( walker ); 1200 1200 1201 // CKEDITOR.dom.walker.checkBackward()/checkForward() can 1202 // make modifications to the DOM, and this has the effect 1203 // of removing the selection in webkit. We bookmark the 1204 // selection here for this contingency. (#8632) 1205 var bm; 1206 if ( CKEDITOR.env.webkit ) 1207 bm = self.createBookmarks()[ 0 ]; 1208 1201 1209 if ( walker.checkBackward() && !walker.halted ) 1202 1210 { 1203 1211 walker = new CKEDITOR.dom.walker( testRange ); … … 1207 1215 if ( walker.checkForward() && !walker.halted ) 1208 1216 retval = root.$; 1209 1217 } 1218 1219 // Restore the selection after running the walker methods. (#8632[2]) 1220 bm && self.selectBookmarks( [ bm ] ); 1210 1221 } 1211 1222 1212 1223 if ( !retval )