Skip to content

Wrap contents of table header and table cell nodes in paragraph#45

Open
godismyjudge95 wants to merge 2 commits intoueberdosis:mainfrom
godismyjudge95:fix-table-header-and-cell
Open

Wrap contents of table header and table cell nodes in paragraph#45
godismyjudge95 wants to merge 2 commits intoueberdosis:mainfrom
godismyjudge95:fix-table-header-and-cell

Conversation

@godismyjudge95
Copy link
Contributor

Importing tables from HTML causes the content of table cells to not be wrapped in paragraph tags which Tiptap js then complains is invalid content.

This takes the wrapper code from the TaskItem https://github.com/ueberdosis/tiptap-php/blob/main/src/Nodes/TaskItem.php#L71-L83 and applies it to the TableHeader and TableCell nodes as well.

@nperez0111 nperez0111 force-pushed the fix-table-header-and-cell branch from f90a949 to 3d9f156 Compare August 12, 2024 08:17
@nperez0111 nperez0111 force-pushed the fix-table-header-and-cell branch from 3d9f156 to a5b1fd4 Compare August 12, 2024 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant