Make WordPress Core

Changeset 49973

Timestamp:
01/17/2021 06:15:21 PM (4 years ago)
Author:
joedolson
Message:

Widgets: Implement TinyMCE on text widgets in Accessibility Mode

TinyMCE was not implemented on the accessibility mode for widgets, disabling text editing fields. Change ensures that TinyMCE is initialized when accessibility mode is set up. Prior implementation hid the text widget fields if they were empty, which they always were for new widgets.

Props MadtownLems, alexstine, hareesh-pillai, dariak

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/_enqueues/wp/widgets/text.js

    r46800 r49973  
    452452        }
    453453
    454         idBase = widgetForm.find( '> .widget-control-actions > .id_base' ).val();
     454        idBase = widgetForm.find( '.id_base' ).val();
    455455        if ( -1 === component.idBases.indexOf( idBase ) ) {
    456456            return;
     
    543543
    544544            // Accessibility mode.
    545             $( window ).on( 'load', function() {
    546                 component.setupAccessibleMode();
    547             });
     545            component.setupAccessibleMode();
    548546        });
    549547    };
Note: See TracChangeset for help on using the changeset viewer.