There is no way to change the CKeditor height, especially if one wants to make it smaller.

Original report

The default page content type has a body field that is set to "Text area with summary". If I go into "Manage form display" and click the gear icon to configure that field, I am presented with options to change "Rows" and "Summary rows". If I adjust summary rows from 3 to 1, click update, click save, then refresh the Page Edit screen I have open in another tab, I will see the summary field reduce in size to 1 row. If, however, I do the same process, but increase "Rows" from 10 to 50, then refresh my edit screen, the main Body field does not increase in size. It doesn't decrease, for that matter, if I reduce the "Rows" value to 1.

When I refresh the edit page, there is a split second where the fields show with all of their content as HTML source. After a very short time, the CKEditor snaps into place (presumably through some JS) and the WYSIWYG editors appear and the raw html source values of the fields is converted to human readable text. For that split second before the final UI snaps into place, I do see that the main body field has increased in size. For example, if I stop the page loading before the final UI snaps into place, I can see quite clearly that the body field has become bigger/smaller according to my configuration. But, if I allow the screen to load naturally, once the UI snaps into place, the main body field always reduces back to about 10 rows.

When I inspect the Summary field's text box after the final UI has loaded, I see a rows="1" attribute on the textarea element. I see a similar attribute on the main body's textarea element. However, if I edit the source in my browser inspector and bump the rows number in the summery field, I see the field get bigger; when I do the same for the main body field, nothing changes. So, is the main body field some how ignoring the "rows" attribute?

Comments

xeM8VfDh created an issue. See original summary.

wim leers’s picture

xem8vfdh’s picture

Thank you @Wim Leers!

geek-merlin’s picture

Title: "Number of rows" configuration on Page Body field not working » Make CKEditor (somehow) reflect the set height
Status: Closed (duplicate) » Active

The other issue ran away and then only documented that it does not work currently.
Fixing that is a valid issue.

geek-merlin’s picture

geek-merlin’s picture

Issue summary: View changes
wim leers’s picture

Title: Make CKEditor (somehow) reflect the set height » "Number of rows" configuration on Page Body field not working
Status: Active » Closed (duplicate)

Please don't reopen closed issues that were already merged into another issue. Feel free to open a completely new issue and then summarize what's happened so far, and what you'd like to see happen on top of that. (I can see you've already mostly done that here, but recycling old issues for this purpose is very very very confusing.)

geek-merlin’s picture

wim leers’s picture