Skip to content

Commit

Permalink
Merge branch 't/9362'
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinmar committed Oct 10, 2012
2 parents be2605c + d2353ad commit a49d9f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/contextmenu/plugin.js
Expand Up @@ -127,6 +127,10 @@ CKEDITOR.plugins.add( 'contextmenu', {
open: function( offsetParent, corner, offsetX, offsetY ) {
this.editor.focus();
offsetParent = offsetParent || CKEDITOR.document.getDocumentElement();

// #9362: Force selection check to update commands' states in the new context.
this.editor.selectionChange( 1 );

this.show( offsetParent, corner, offsetX, offsetY );
}
}
Expand Down

0 comments on commit a49d9f7

Please sign in to comment.