Skip to content

Commit

Permalink
Merge branch 't/9549b'
Browse files Browse the repository at this point in the history
  • Loading branch information
Garry Yao committed Nov 5, 2012
2 parents 53dff67 + 375d3ae commit 7bbcff1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions plugins/clipboard/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,10 @@
if ( CKEDITOR.env.ie )
editable.focus();

// IE7: selection must go before removing pastebin. (#8691)
sel.selectBookmarks( bms );
pastebin.remove();

// Grab the HTML contents.
// We need to look for a apple style wrapper on webkit it also adds
// a div wrapper if you copy/paste the body of the editor.
Expand All @@ -730,12 +734,7 @@
if ( CKEDITOR.env.webkit && ( bogusSpan = pastebin.getFirst() ) && ( bogusSpan.is && bogusSpan.hasClass( 'Apple-style-span' ) ) )
pastebin = bogusSpan;

// IE7: selection must go before removing pastebin. (#8691)
sel.selectBookmarks( bms );

editor.removeListener( 'selectionChange', cancel );

pastebin.remove();
callback( pastebin.getHtml() );
}, 0 );
}
Expand Down

0 comments on commit 7bbcff1

Please sign in to comment.