I have a page that's quite constrained and I would like to have the height of the editor reduced to fit while creating or editing a node.

I use a module (node form settings) to define the size of the text area of the body (i.e. the '#row' number). Setting it to a small number such as 2 results in a size of 168 as we can see in the JS settings:

"ckeditor": { ... "width": "100%", "height": 168, ... }

The size looks good here, but once the editor is open, it is more like 265 pixels in height. I understand that we need some space for the toolbar (mine is 2 lines so 66 pixels) and the "footer" (28 pixels). So we definitively need more space than just the 2 rows I request (you calculate the 168 using 14 * 2 + 140 -- the 2 is from the '#row' parameter, the 14 and 140 numbers are kind of out of thin air, and I can leave with that for now.)

But whether I use 2, 5 or 10, it looks like the editor is about the same size.

Would there be a way to reduce the height?

I had a quick look at the ckeditor and noticed a resize_minHeight that was set to 250, but I'm not too sure how if I can change that value. I tried adding that in the custom JS configuration like this:

config.resize_minHeight = 50;

and it appears in the settings as in:

... "js_conf": { "resize_minHeight": "50" } ...

but I have no clue whether that's correct. It doesn't break the editor, but the height is still the same.

Thank you.
Alexis