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

Support for th when converting html to Delta #4518

Open
charliemidtlyng opened this issue Dec 5, 2024 · 0 comments
Open

Support for th when converting html to Delta #4518

charliemidtlyng opened this issue Dec 5, 2024 · 0 comments

Comments

@charliemidtlyng
Copy link

charliemidtlyng commented Dec 5, 2024

When converting html table to Delta the th tag is handled as text and therefore the table will be quirky.
It will hopefully be a small fix to support this (same places td is supported) since the rest of the table is converted as expected.

Steps for Reproduction

  1. quill.clipboard.convert with a table that contains th element
  2. Added table with th both as first column and first row - quilljs.com example code
  3. Visit https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table to see how it should work

Expected behavior:
One column per th

Actual behavior:
th tags end up as plain text

Platforms:
All browsers - this is not supported (i've checked the code)

Version:
2.0.3

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

No branches or pull requests

1 participant