WordPress.org

Make WordPress Core

Changeset 29815


Ignore:
Timestamp:
10/02/2014 12:45:42 PM (5 years ago)
Author:
SergeyBiryukov
Message:

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

props afercia.
fixes #29815.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/editor.js

    r29316 r29815  
    7777            DOM.removeClass( wrap_id, 'html-active' );
    7878            DOM.addClass( wrap_id, 'tmce-active' );
     79            DOM.setAttrib( txtarea_el, 'aria-hidden', true );
    7980            setUserSetting( 'editor', 'tinymce' );
    8081
     
    113114            DOM.removeClass( wrap_id, 'tmce-active' );
    114115            DOM.addClass( wrap_id, 'html-active' );
     116            DOM.setAttrib( txtarea_el, 'aria-hidden', false );
    115117            setUserSetting( 'editor', 'html' );
    116118        }
Note: See TracChangeset for help on using the changeset viewer.