[Bug]: Table resizing #3993
Labels
Category: Open Source
The issue or pull reuqest is related to the open source packages of Tiptap.
Triage: Open
A new issue or pullrequest that requires triage (added by default)
Type: Bug
The issue or pullrequest is related to a bug
Which packages did you experience the bug in?
extension-table-header, extension-table-cell
What Tiptap version are you using?
latest
What’s the bug you are facing?
Hi, all!
I faced with table resizing issue.
Steps:
editor.getHTML()
for getting pure html string. The output:<table><tbody><tr><th colspan="2" rowspan="1" colwidth="83,100"><p></p></th><th colspan="1" rowspan="1" colwidth="84"><p></p></th></tr><tr><td colspan="1" rowspan="1" colwidth="83"><p></p></td><td colspan="1" rowspan="1" colwidth="100"><p></p></td><td colspan="1" rowspan="1" colwidth="84"><p></p></td></tr><tr><td colspan="1" rowspan="1" colwidth="83"><p></p></td><td colspan="1" rowspan="1" colwidth="100"><p></p></td><td colspan="1" rowspan="1" colwidth="84"><p></p></td></tr></tbody></table>
;What browser are you using?
Chrome
Code example
No response
What did you expect to happen?
Table should save size.
Anything to add? (optional)
I finally fixed it by changing
parseHTML
function inextension-table-header
,extension-table-cell
.colwidth
attribute could has values separated by comma, but in current implementation, only first value is parsed:https://github.com/ueberdosis/tiptap/blob/develop/packages/extension-table-cell/src/table-cell.ts#L28-L34
https://github.com/ueberdosis/tiptap/blob/develop/packages/extension-table-header/src/table-header.ts#L27-L34
My solution for fixing:
Did you update your dependencies?
Are you sponsoring us?
The text was updated successfully, but these errors were encountered: