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:
parent
a7ea80e70b
commit
f4c6eb964b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue