Skip to content

Fix HTML attribute compatibility with Tiptap JS#95

Open
sonnymilton wants to merge 2 commits into
ueberdosis:mainfrom
sonnymilton:fix/js-php-compatibility
Open

Fix HTML attribute compatibility with Tiptap JS#95
sonnymilton wants to merge 2 commits into
ueberdosis:mainfrom
sonnymilton:fix/js-php-compatibility

Conversation

@sonnymilton

Copy link
Copy Markdown

Summary

Improve HTML parsing and rendering compatibility with Tiptap JS:

  • Parse task item state from the data-checked attribute.
  • Support both the current colwidth table attribute and legacy data-colwidth.
  • Render both table width attributes to preserve backward compatibility.
  • Prefer colwidth when both table width attributes are present.

Tests

Added regression coverage for:

  • Checked, unchecked, and empty data-checked values.
  • Parsing the JavaScript colwidth attribute.
  • Compatibility with legacy data-colwidth.
  • Table width rendering.

Compatibility

Verified against Tiptap JS 3.27.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

Successfully merging this pull request may close these issues.

1 participant