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.
What to expect on your site
The default for text fields' widgets is rows=5
, which looks like this
- Before
- After
Attachment | Size |
---|---|
manage form display.png | 89.83 KB |
add article.png | 75.5 KB |