Skip to content

Comments

fix(PlainTable): Add paragraph node, required for table cells#8052

Merged
mejo- merged 2 commits intomainfrom
fix/plain_table_test
Dec 13, 2025
Merged

fix(PlainTable): Add paragraph node, required for table cells#8052
mejo- merged 2 commits intomainfrom
fix/plain_table_test

Conversation

@mejo-
Copy link
Member

@mejo- mejo- commented Dec 13, 2025

With table cells now requiring a block node as content, the paragraph node is needed to allow any content in a table cell.

Also slightly improves create-table-api.spec.ts. No need to open Text in Viewer to test window.OCA.Text.createTable().

🏁 Checklist

  • Code is properly formatted (npm run lint / npm run stylelint / composer run cs:check)
  • Sign-off message is added to all commits
  • Tests (unit, integration and/or end-to-end) passing and the changes are covered with tests

No need to open Text in Viewer to test `window.OCA.Text.createTable()`.

Signed-off-by: Jonas <jonas@freesources.org>
With table cells now requiring a block node as content, the paragraph
node is needed to allow any content in a table cell.

Signed-off-by: Jonas <jonas@freesources.org>
@mejo- mejo- requested a review from silverkszlo December 13, 2025 10:59
@mejo- mejo- self-assigned this Dec 13, 2025
@mejo- mejo- requested a review from max-nextcloud as a code owner December 13, 2025 10:59
@mejo- mejo- added tests If you write them we ♥ you 3. to review regression labels Dec 13, 2025
Copy link
Collaborator

@max-nextcloud max-nextcloud left a comment

Choose a reason for hiding this comment

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

Thanks for the quick fix!

@mejo- mejo- merged commit 932aad4 into main Dec 13, 2025
50 of 62 checks passed
@mejo- mejo- deleted the fix/plain_table_test branch December 13, 2025 13:03
@codecov
Copy link

codecov bot commented Dec 13, 2025

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/extensions/PlainTable.js 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@silverkszlo
Copy link
Collaborator

thank you for the test fixes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review regression tests If you write them we ♥ you

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants