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! 🎄

[Closed] Auto expand editor body in relation to text input

5 Posts
2 Users
1 Reactions
2,559 Views
Posts: 392
Topic starter
(@anonymous3542)
Honorable Member
Joined: 8 years ago

Some of my users (me included) get into in-depth discussions on my forum. What would be great is the ability to auto expand the editor body (where text is added) so that it expands to the content in terms of height - or, as an alternative, allow the editor to be full screen

I know this can be done in TinyMCE - just not sure how to configure it for wpForo ?

Thanks


4 Replies
Posts: 392
Topic starter
(@anonymous3542)
Honorable Member
Joined: 8 years ago

Hmm. Thought that this would work, but doesn't seem to - perhaps the plugin isn't being loaded, or I'm calling the wrong ID

jQuery(window).load(function() {
tinyMCE.activeEditor.dom.addStyle('body{font-family: Lato, Helvetica, sans-serif !important;}');
tinymce.init({selector: "#postbody", plugins: "autoresize"});
});

Any ideas ?


Sofy
Posts: 5637
 Sofy
Admin
(@sofy)
Support Team
Joined: 8 years ago

Hi @anonymous3542,

I'll ask our developers and let you know asap. 


1 Reply
(@anonymous3542)
Joined: 8 years ago

Honorable Member
Posts: 392

@sofy thanks. However, I have this working now. Slightly convoluted, but works well.


Posts: 392
Topic starter
(@anonymous3542)
Honorable Member
Joined: 8 years ago

@soft @robert sadly, the method I used to auto resize the editor area based on content doesn't like wpForo. I use the TinyMCE autoresize plugin which works fine, but then wpForo thinks the editor field is blank on submission, so I'm guessing the ID changes somewhere.

Back to the drawing board, and hoping that wpForo consider adding this feature as I think it should be in the core.