Notifications
Clear all

Limited Support

Our support team is currently on holiday from December 25, 2025 to January 7, 2026, and replies may be delayed during this period.

We appreciate your patience and understanding while our team is away. Thank you for being part of the wpForo community!

Merry Christmas and Happy Holidays! 🎄

Script [Solved] Change Default Height of Editor

2 Posts
2 Users
1 Reactions
2,529 Views
Posts: 63
Topic starter
(@hshah)
Trusted Member
Joined: 6 years ago

For some reason the editor window is really short by default. Is there any CSS or something I could apply so that it is taller from when the page loads? 


1 Reply
Alvina
Posts: 1860
Moderator
(@alvina)
Member
Joined: 6 years ago

Hi @hshah,

Please put the following code in the active theme functions.php file, it works for all editors but the topic editor:

add_filter('wpforo_editor_settings', function($settings){
  $settings['editor_height'] = 180;
  return  $settings;
});

You can change the red marked code as you want.

For topics, insert this CSS code in Dashboard > Forums > Settings > Styles > Custom CSS Code textarea, save it, delete all caches, go to forum front-end and press Ctrl+F5:

#wpforo #wpforo-wrap.wpft-topic .wp-editor-container .mce-edit-area iframe {
    min-height: 180px;
}
#wpforo #wpforo-wrap.wpft-topic .mce-edit-area.mce-container.mce-panel.mce-stack-layout-item{
     min-height: 180px;
}