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

[Bug]: HTML output of Table is missing colgroup element #4281

Merged
merged 2 commits into from
Oct 10, 2023

Conversation

diginikkari
Copy link
Contributor

Fixes #4280

Please describe your changes

Added createColGroup function to generate colGroup based on child nodes (imitates updateColumns which is used for editor TableView.

How did you accomplish your changes

renderHTML is calling updateColumns to get generated colgroup element, tableWidth and tableMinWidth values.

How have you tested your changes

Updated react and vue e2e tests to assert that there is colgroup -element.

How can we verify your changes

[add a detailed description of how we can verify your changes here]

Remarks

[add any additional remarks here]

Checklist

  • The changes are not breaking the editor
  • Added tests where possible
  • Followed the guidelines
  • Fixed linting issues

Related issues

#721

@netlify
Copy link

netlify bot commented Aug 2, 2023

Deploy Preview for tiptap-embed ready!

Name Link
🔨 Latest commit ee06cb0
🔍 Latest deploy log https://app.netlify.com/sites/tiptap-embed/deploys/64d09eea0641c50007dd9b07
😎 Deploy Preview https://deploy-preview-4281--tiptap-embed.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@diginikkari
Copy link
Contributor Author

@bdbch any change to get this merged any time soon?

@bdbch bdbch merged commit 6b2edc5 into ueberdosis:develop Oct 10, 2023
14 checks passed
mergeAttributes(this.options.HTMLAttributes, HTMLAttributes, {
style: tableWidth
? `width: ${tableWidth}`
: `minWidth: ${tableMinWidth}`,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minWidth or min-width ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[Bug]: HTML output of Table is missing colgroup element
3 participants