Ask Your Question
4

Is it not possible to modify the size of TinyMCE using the wp_editor_settings filter?

asked 2023-06-03 09:38:54 +0000

devzero gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-06-03 10:00:02 +0000

pufferfish gravatar image

Yes, it is possible to modify the size of TinyMCE using the wpeditorsettings filter. You can use the following code snippet to do this:

function modify_tinymce( $settings ) {
    $settings['height'] = '500px'; // Replace with your desired height
    return $settings;
}
add_filter( 'wp_editor_settings', 'modify_tinymce' );

This code will modify the height of TinyMCE editor to 500px. You can replace this value with any size you want.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-03 09:38:54 +0000

Seen: 9 times

Last updated: Jun 03 '23