Ticket #7316: 7316_2.patch
File 7316_2.patch, 1008 bytes (added by , 13 years ago) |
---|
-
_source/plugins/clipboard/plugin.js
158 158 } 159 159 }; 160 160 161 function cancel( evt ) { evt.cancel(); } 162 161 163 // Allow to peek clipboard content by redirecting the 162 164 // pasting content into a temporary bin and grab the content of it. 163 165 function getClipboardData( evt, mode, callback ) … … 208 210 209 211 var bms = sel.createBookmarks(); 210 212 213 this.on( 'selectionChange', cancel, null, null, 0 ); 214 211 215 // Turn off design mode temporarily before give focus to the paste bin. 212 216 if ( mode == 'text' ) 213 217 { … … 234 238 { 235 239 mode == 'text' && CKEDITOR.env.gecko && editor.focusGrabber.focus(); 236 240 pastebin.remove(); 241 editor.removeListener( 'selectionChange', cancel ); 237 242 238 243 // Grab the HTML contents. 239 244 // We need to look for a apple style wrapper on webkit it also adds