When switching to the Text editor, make the textarea visible to screen readers.

props afercia.
fixes #29815.

git-svn-id: https://develop.svn.wordpress.org/trunk@29815 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2014-10-02 12:45:42 +00:00
parent a7ea80e70b
commit f4c6eb964b
1 changed files with 2 additions and 0 deletions

View File

@ -76,6 +76,7 @@ window.switchEditors = {
DOM.removeClass( wrap_id, 'html-active' );
DOM.addClass( wrap_id, 'tmce-active' );
DOM.setAttrib( txtarea_el, 'aria-hidden', true );
setUserSetting( 'editor', 'tinymce' );
} else if ( 'html' === mode ) {
@ -112,6 +113,7 @@ window.switchEditors = {
DOM.removeClass( wrap_id, 'tmce-active' );
DOM.addClass( wrap_id, 'html-active' );
DOM.setAttrib( txtarea_el, 'aria-hidden', false );
setUserSetting( 'editor', 'html' );
}
return false;