Change record status: 
Project: 
Introduced in branch: 
10.1.x
Introduced in version: 
10.1.0
Description: 

In previous versions of Drupal, the CKEditor 5 (and previously 4) WYSIWYG editor did not respect the rows value in the field's widget settings (for 4 there is only ckeditorheight in contrib). With this change, CKEditor 5 will now show an approximation of the configured number of rows.

Note that rows is really a monospaced <textarea> concept, and only in that context can it work precisely. In the case of CKEditor 5, the line height of each line can be different — for example a subheading versus a paragraph, etc. The approximation algorithm Drupal applies to CKEditor 5 to make the rows setting apply approximately relies on a paragraph's line height and margin.

Manage form display form showing field widgets including row setting

Add article form showing a larger CKEditor interface that corresponds to the number of rows value

What to expect on your site

The default for text fields' widgets is rows=5, which looks like this

Before
Screenshot of CKEditor 5 with a very short height
After
Screenshot of CKEditor 5 with a medium height
AttachmentSize
manage form display.png89.83 KB
add article.png75.5 KB
Impacts: 
Site builders, administrators, editors
Themers
Updates Done (doc team, etc.)
Online documentation: 
Not done
Theming guide: 
Not done
Module developer documentation: 
Not done
Examples project: 
Not done
Coder Review: 
Not done
Coder Upgrade: 
Not done
Other: 
Other updates done