Come for the code, stay for the community

CKEditor5

Investigate CKEditor HTML config

Context

Configuring additional markup in CKEditor can be problematic.

What are the configuration options?

Findings

Using fresh Drupal 11 standard install.

Basic HTML has source editing button, with these editable tags:
<cite> <dl> <dt> <dd> <a hreflang> <blockquote cite> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>

There is no way to apply div style without using source editing to create the div first.

CKEditor formatting options

By default, ckeditor has paragraph and heading formatting options.

Styles can be added, defining a tag and class to apply to selected text.

It's easy to apply styles to existing formats, but adding new ones can be tricky.

Here are the configuration options for ckeditor styles: