Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
No matter what I set the 'Rows' value to for a long text field, CKEditor 4 always seems to initially display at the same height.
Comments
Comment #1
TwoDThat's because Wysiwyg sets the initial height to 420px.
You can override that by implementing
hook_wysiwyg_editor_settings_alter()
and changing the 'height' setting to what you want.The downside is that that hook is run once per format and not once per field, because the field instance isn't available at that time int the code.
Some work has been done in #507696: Allow individual width/height per field to alter settings per field, but nobody's had time to complete it yet and the current implementation is not so efficient, if I remember correctly.
Comment #2
dddbbb CreditAttribution: dddbbb commentedThanks for the info. I'll check out the linked issue.