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
Built from https://develop.svn.wordpress.org/trunk@49973


git-svn-id: http://core.svn.wordpress.org/trunk@49674 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
joedolson 2021-01-17 18:17:07 +00:00
parent dc138704c6
commit fe3610466a
3 changed files with 4 additions and 6 deletions

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();
});
};

File diff suppressed because one or more lines are too long

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.7-alpha-49972';
$wp_version = '5.7-alpha-49973';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.