Skip to content
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

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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.

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