Answering my question, as this may help others.
CKEditor 5 no longer comes with a configuration setting to change its height. Height is easily controlled using CSS.
There is one trick if you use the classic editor :
<div id="editor1"></div>
ClassicEditor .create( document.querySelector( '#editor1' ) ) .then( editor => {
Then the classic editor hides the original element (with the identifier editor1 ) and editor1 next to it. Therefore, changing the height of #editor1 through CSS will not work.
The simplified HTML structure after rendering CKEditor 5 (classic editor) is as follows:
<div id="editor1" style="display:none"></div> <div class="ck-reset ck-editor..." ...> <div ...> <div class="ck-blurred ck-editor__editable ck-rounded-corners ck-editor__editable_inline" role="textbox" aria-label="Rich Text Editor, main" contenteditable="true"> ... </div> </div> </div>
HTML is actually a lot more complicated because the whole CKEditor interface is displayed. However, the most important element is the “editing area” (or “editing field”), marked with the ck-editor__editable_inline :
<div class="... ck-editor__editable ck-editor__editable_inline ..."> ... </div>
An “editing area” is a white rectangle into which you can enter text. Therefore, to stylize / change the height of the editing area, just aim the edited element using CSS:
<style> .ck-editor__editable_inline { min-height: 400px; } </style>
Victor walc
source share