hvlads / django-ckeditor-5

Django CKEditor 5 integration.
Other
155 stars 60 forks source link

Editor width issue with Django 4.2 #162

Closed nattyg93 closed 1 year ago

nattyg93 commented 1 year ago

Django 4.2.x uses flexbox for field rows and this results in the ckeditor field taking up the minimal space that it can. This only becomes apparent in the example "blog" project when the toolbar items are reduced to only a few. (See screenshot below)

I've hacked around the issue by adding the following css:

.ck.ck-reset.ck-editor
  width: 100%
Screenshot showing bug

With the css applied:

Screenshot with width: 100% applied