Skip to content

CKEditor inserts empty paragraph after adding entry #416

@jakobhaerter

Description

@jakobhaerter

Description

When adding entries to a CKEditor field, CKEditor automatically appends an empty paragraph and doesn't strip it on save. This behaviour might enhance the users editing flow, but most of our clients will never check the field for empty paragraphs before they click save – leading to unwanted gaps in the frontend.

screen-recording-craftcms-ckeditor-1080p.mov

Steps to reproduce

  1. Create a CKEditor field and add entry types
  2. While editing an entry, add an entry type to the CKEditor field
  3. CKEditor should append an empty paragraph

Additional info

  • Craft version: 5.7.7
  • PHP version: 8.3

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions