Opened 3 years ago
Closed 6 months ago
#55120 closed defect (bug) (wontfix)
"wp_editor_settings" filter not working for the Classic block TinyMCE settings
Reported by: | oztaser | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | TinyMCE | Keywords: | |
Focuses: | Cc: |
Description
This filter was added in the #45348 to Classic Block but I think it's not working. To run this filter we need to use return value of array_merge
reference. I double check if there is an any version of PHP could support this usage but I couldn't found: https://3v4l.org/v4YBT
You can find below my must use plugin for test, it doesn't effect any option of Classic block.
<?php namespace NefisYemekTarifleri\Test_Classic_TinyMCE_Settings; add_filter( 'wp_editor_settings', __NAMESPACE__ . '\\editor_settings', 10, 2 ); function editor_settings( $settings, $editor ) { if ( 'classic-block' !== $editor ) { return $settings; } $settings['tinymce'] = [ 'toolbar1' => 'bold,italic' ]; return $settings; }
I hope I don't miss anything 🙂
Change History (1)
Note: See
TracTickets for help on using
tickets.
It's been three years and no new reports or follow-up. Assuming there is an easy workaround for this or another/better method can be used to change the editor settings.
Closing as wontfix. Please feel free to reopen with a patch if this is still a problem.