-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extending the list of supported elements #103
Comments
Brainstorming what a new deciding principal could be, maybe we could support every element except for those that can be any of:
|
LGTM but it still allows some "weird" elements as phrasing content includes e.g. |
These are the minutes from the August 8 2024 meeting on this topic:
|
Here is the potential list that would be produced based on the result of the prior discussion in this issue:
I generated this by:
This can be reproduced with: https://jsfiddle.net/dandclark_msft/d846Lk3p/55/ This still leaves some I'm hesitant to add support for but that don't fall into any category that we can eliminate without also eliminating others that we need to include. The potentially weird ones I see are: We may just have to list these as special cases. |
That list should still contain valid custom element names. Not sure about col and colgroup, there might be some other weird ones. |
The minutes from today's call:
|
The list we will have for now: |
From TPAC 2024 minutes:
|
We started to experiment with EditContext API in CKEditor 5 and encountered an issue. There are so-called "nested editables" inside the editor – smaller editable regions inside the main editable region of the editor, e.g. image captions or table cells. We want to use the EditContext API also in these nested editables but it can't be used directly due to limiting the list of supported elements only to shadow hosts +
<canvas>
. This limitation forces us to dynamically inject a<div>
element into a nested editable to enable the EditContext API when the user starts interacting with it:It works but introduces some drawbacks, especially when it comes to the styling, e.g. it breaks selectors like
td > p:first-child
.It was decided in #19 to limit the list to "boring elements" (shadow hosts) but I feel that this list could be too limited. CKEditor 5 is not the only editor that uses nested editables, e.g. Tiny also uses them with the
<figcaption>
element for image captions so does Lexical. Due to that, I propose extending the current list of supported elements, e.g. to all elements supporting thecontenteditable
attribute.The text was updated successfully, but these errors were encountered: