You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The filters below remove the TinyMCE editor feature that expands its container to the height of the content as well as removes the option from the Help menu.
20
+
21
+
```php
22
+
/**
23
+
* Unregister the editor expand script.
24
+
*
25
+
* @return void
26
+
*/
27
+
add_action('admin_init', function () {
28
+
wp_deregister_script('editor-expand');
29
+
});
30
+
31
+
/**
32
+
* Disable TinyMCE's autoresize.
33
+
*
34
+
* @param array $init
35
+
* @return array
36
+
*/
37
+
add_filter('tiny_mce_before_init', function ($init) {
0 commit comments