Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Clipboard: bulletproof case of pasting the entire inline editor.
  • Loading branch information
oleq committed Dec 10, 2012
1 parent c65eab0 commit dc44eca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/clipboard/plugin.js
Expand Up @@ -133,6 +133,7 @@
// Verify for sure and check for nested editor UI parts. (#9675)
while ( wrapper.getChildCount() == 1 &&
( tmp = wrapper.getFirst() ) &&
tmp.type == CKEDITOR.NODE_ELEMENT && // Make sure first-child is element.
( tmp.hasClass( 'cke_editable' ) || tmp.hasClass( 'cke_contents' ) ) ) {
wrapper = editable_wrapper = tmp;
}
Expand Down

0 comments on commit dc44eca

Please sign in to comment.