Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: Zatalyz on March 20, 2023, 06:02:50 AM

Title: Editor max height blocked ? (2.1.3)
Post by: Zatalyz on March 20, 2023, 06:02:50 AM
Hello,

In the editor mode, I can't modify the height of the writing area beyond a certain height (432;5px precisely).

With firefox inspector I find the good place :
<div class="sceditor-container ltr sourceMode" style="width: 841px; height: 432.5px;">

But I don't understand where this max-height is stated.

In jquery.sceditor.smf.js, I comment this part :
/*document.querySelector(".sceditor-container textarea").style.height = options.height;
document.querySelector(".sceditor-container textarea").style.flexBasis = options.height;*/

But it changes nothing...

Have you an idea ? I really don't understand JS and Jquery...

My forum is in 2.1.3.
Title: Re: Editor max height blocked ? (2.1.3)
Post by: Steve on March 20, 2023, 08:25:42 AM
https://custom.simplemachines.org/index.php?mod=4332
Title: Re: Editor max height blocked ? (2.1.3)
Post by: Zatalyz on March 20, 2023, 08:56:32 AM
Thank you very much, I had missed this plugin !
Title: Re: Editor max height blocked ? (2.1.3)
Post by: Shades. on March 20, 2023, 08:57:10 AM
Quote from: Steve on March 20, 2023, 08:25:42 AMhttps://custom.simplemachines.org/index.php?mod=4332
Should be standard in MHOP! ;)