Ticket #7316: 7316.patch
File 7316.patch, 1.6 KB (added by , 13 years ago) |
---|
-
_source/plugins/selection/plugin.js
25 25 26 26 if ( !currentPath.compare( this._.selectionPreviousPath ) ) 27 27 { 28 this._.selectionPreviousPath = currentPath; 29 this.fire( 'selectionChange', { selection : sel, path : currentPath, element : firstElement } ); 30 } 31 } 28 var data = { selection : sel, path : currentPath, element : firstElement }; 29 if ( this.fire( 'beforeSelectionChange', data ) ) 30 { 31 this._.selectionPreviousPath = currentPath; 32 this.fire( 'selectionChange', data ); 33 } 34 } 35 } 32 36 catch (e) 33 37 {} 34 38 } -
_source/plugins/clipboard/plugin.js
208 208 209 209 var bms = sel.createBookmarks(); 210 210 211 // Depress "selectionChange" event inside paste bin. (#7316) 212 this.on( 'beforeSelectionChange', function( evt ) { evt.data = false; }); 213 211 214 // Turn off design mode temporarily before give focus to the paste bin. 212 215 if ( mode == 'text' ) 213 216 { … … 234 237 { 235 238 mode == 'text' && CKEDITOR.env.gecko && editor.focusGrabber.focus(); 236 239 pastebin.remove(); 240 editor.removeListener( 'beforeSelectionChange' ); 237 241 238 242 // Grab the HTML contents. 239 243 // We need to look for a apple style wrapper on webkit it also adds