-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
colgroup and col elements are removed from markup when configured as allowed in GHS #15368
Comments
The GHS doesn't support empty elements right now: ckeditor5/packages/ckeditor5-html-support/src/schemadefinitions.ts Lines 21 to 28 in 4bbcdaa
|
@Witoso But |
|
I assume there's some relation there that blocked us, maybe @niegowski could share more here. |
Hi there - sorry for the delay on this - it looks like support was added in #13328 but just the docs are out of date? I should have been clearer in the description that GHS does work for col and colgroup elements when: ✅ - the ❌ it does not work in the scenario where |
Ok - I have added #15573 to
Updated issue description with a better explanation - initial issue description wasn't clear as I had no idea what I was look at 🙈 I don't know if I can commit additional time to fix - but if somebody can suggest where this can be fixed I can certainly try where I can. Other step would be removing the comment that implies this element has no support |
@filipsobol would be great if you could take a look! |
📝 Provide detailed reproduction steps (if any)
When specifying
col
andcolgroup
elements as allowed for General HTML support they are being removed if theTable
plugin is enabled but theTableResize
plugin is not.See the MR #15573 - manual test "table-no-resize"
✔️ Expected result
Expected result is the the
col
andcolgroup
elements remain in the HTML.❌ Actual result
View HTML does not contain the
col
andcolgroup
elements.The model does contain the HTML - but this is not rendered when the table is.
In the inspector for the
table-resize
test I can see 2 schema definitions for col and colgroup:htmlCol
/htmlColgroup
and thetableColumn
/tableColumnGroup
definitions:The
tableColumn
/tableColumnGroup
definitions are missing theallowedIn: table
definition.In the model the HTML is showing as htmlCol and htmlColgroup - but this is not allowed in the table schema - so nothing is rendered in the view.
❓ Possible solution
Unsure of the solution - seems like only 1 schema should exist and it should have all the information needed to be retained.
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: