mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
When switching to the Text editor, make the textarea visible to screen readers.
props afercia. fixes #29815. Built from https://develop.svn.wordpress.org/trunk@29815 git-svn-id: http://core.svn.wordpress.org/trunk@29581 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
067feb9691
commit
468dc35b8b
@ -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;
|
||||
|
2
wp-admin/js/editor.min.js
vendored
2
wp-admin/js/editor.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user