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

git-svn-id: https://develop.svn.wordpress.org/trunk@49973 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Joe Dolson 2021-01-17 18:15:21 +00:00
parent fc2e5e9ea8
commit e7cebf49e5

View File

@ -451,7 +451,7 @@ wp.textWidgets = ( function( $ ) {
return;
}
idBase = widgetForm.find( '> .widget-control-actions > .id_base' ).val();
idBase = widgetForm.find( '.id_base' ).val();
if ( -1 === component.idBases.indexOf( idBase ) ) {
return;
}
@ -542,9 +542,7 @@ wp.textWidgets = ( function( $ ) {
});
// Accessibility mode.
$( window ).on( 'load', function() {
component.setupAccessibleMode();
});
component.setupAccessibleMode();
});
};