CKEditor inputs have a height of zero if initially hidden/collapsed

Created on 30 August 2023, 10 months ago

Problem/Motivation

When CKEditor WYSIWYG inputs are placed, for example, in a collapsed Field Group tab, the height calculation returns zero, resulting in an input with no height:

Steps to reproduce

  • Enable a module such as Field Group that allows placing form fields in hidden or collapsed areas
  • Place a formatted text field, with CKEditor input enabled, in such a tab or field group.
  • Load the form, and expand the hidden input
  • Note the height (eg, configured number of rows) is not respected

Proposed resolution

Choose a minimum line height in ckeditor.js, such as 12, so that in such instances, the editor has a height instead of no height.

Remaining tasks

🐛 Bug report
Status

Closed: cannot reproduce

Version

10.1

Component
CKEditor 5 

Last updated 1 day ago

Created by

🇺🇸United States jhedstrom Portland, OR

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @jhedstrom
  • Status changed to Closed: cannot reproduce 10 months ago
  • 🇺🇸United States jhedstrom Portland, OR

    This actually isn't reproducable on a vanilla D10.1 install.

Production build 0.69.0 2024