Reconfiguring the height of the SCEditor edit area depending on the height of the button bar

This commit is contained in:
Visman 2023-08-02 16:48:35 +07:00
parent 214bbbfaa0
commit 8b1c9dedc7

View file

@ -73,6 +73,8 @@ ForkBB.editor = (function (doc, win) {
sceditor.create(textarea, options);
instance = sceditor.instance(textarea);
instance.height(instance.height() - instance.getBody().offsetHeight + 300);
if (smiliesEnabled) {
var checkbox = doc.querySelector('input[name="hide_smilies"]');