-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Loading nested tables with border-bottom style throws JavaScript error #8393
Comments
FYI: The default schema config does not support nested tables at the moment, but it can be overridden: #3232 (comment) |
The problem happens when the schema allows for a given item (in this example a Pre-prepared converters (e.g. Adding a check around here for available items will solve the issue. The question is: do we want to do something more to prevent this type of problems? Can we? |
Lets check if I got it right. That converter listens to If yes, then it's definitely this converter that's incorrect. It cannot assume that the thing was indeed converted. |
So, yeah, if |
Turns out that the problem was introduced when we were fixing #6177. The fix for that issue is incorrect. The TC was as follows – try to load the following HTML <table style="border:1px solid red">
<tr>
<td>parent:00</td>
<td>
<table style="border:1px solid green"><tr><td>child:00</td></tr></table>
</td>
</tr>
</table> The error was thrown when trying to convert the However, instead, we added these couple of lines which do Yup, table styles get applied to the content of a table cell. Tests written like this pass: ckeditor/ckeditor5-table@a754898#diff-7d05be5c29068846363432b7459306703d51e40f853e3fc4191d38c3b6acb5a4R227-R229 and we release this patch :D The solution here will be to revert these changes and simply abort conversion when |
Fix (table): The contents of nested tables are no longer going through upcasting. Closes #8393.
📝 Provide detailed reproduction steps (if any)
✔️ Expected result
Data gets loaded into editor.
❌ Actual result
Java Script error is being thrown -
📃 Other details
Even after enabling nested tables #3232 (comment) the error is still thrown.
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: