Skip to content

Commit

Permalink
Update state of rich combo on selection changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Jasiun authored and Reinmar committed Mar 14, 2014
1 parent eec6b82 commit 094859c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/richcombo/plugin.js
Expand Up @@ -174,9 +174,10 @@ CKEDITOR.plugins.add( 'richcombo', {
this.refresh();
}

// Update status when activeFilter, mode or readOnly changes.
// Update status when activeFilter, mode, selection or readOnly changes.
editor.on( 'activeFilterChange', updateState, this );
editor.on( 'mode', updateState, this );
editor.on( 'selectionChange', updateState, this );
// If this combo is sensitive to readOnly state, update it accordingly.
!this.readOnly && editor.on( 'readOnly', updateState, this );

Expand Down

0 comments on commit 094859c

Please sign in to comment.