Skip to content
Permalink
Browse files

#9368: Fixed ARIA attributes for toolbar buttons state.

  • Loading branch information...
fredck committed Dec 20, 2012
1 parent eaa08e6 commit d8db6b086880c53b0a9e3277bcb5cd14270f2ea9
Showing with 13 additions and 0 deletions.
  1. +9 −0 plugins/button/plugin.js
  2. +4 −0 plugins/richcombo/plugin.js
@@ -292,6 +292,15 @@

if ( element ) {
element.setState( state, 'cke_button' );

state == CKEDITOR.TRISTATE_DISABLED ?
element.setAttribute( 'aria-disabled', true ) :
element.removeAttribute( 'aria-disabled' );

state == CKEDITOR.TRISTATE_ON ?
element.setAttribute( 'aria-pressed', true ) :
element.removeAttribute( 'aria-pressed' );

return true;
} else
return false;
@@ -359,6 +359,10 @@ CKEDITOR.plugins.add( 'richcombo', {
var el = this.document.getById( 'cke_' + this.id );
el.setState( state, 'cke_combo' );

state == CKEDITOR.TRISTATE_DISABLED ?
el.setAttribute( 'aria-disabled', true ) :
el.removeAttribute( 'aria-disabled' );

this._.state = state;
},

0 comments on commit d8db6b0

Please sign in to comment.
You can’t perform that action at this time.