Problem/Motivation
#3260869: Resolve mismatch between <$block> interpretation by CKEditor 5 and Drupal resolves the <$block>
wildcard based on incorrect list of tags. The good thing is that the current list should be a superset of what it actual should resolve into. However, the list that it should resolve into is significantly smaller, and for that reason we should update the list.
Proposed resolution
Come up with a shorter list of tags <$block>
should resolve into. This can be hardcoded based on all CKEditor 5 core plugins. Potentially rename <$block>
to something less confusing.
Remaining tasks
- Come up with a shorter list of tags
<$block>
should resolve into. This can be hardcoded based on all CKEditor 5 core plugins - Update test assertions to use tags listed on the new list
- Discuss if we want to continue
<$block>
as the wildcard name since it's not tied into block level HTML elements - Open follow-up for providing an API to extend the wildcard tags so that contrib modules can provide additional tags that should be resolved from a wildcard