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

[stable27] Fix/2708 pasting tables #4313

Merged
merged 3 commits into from
Jun 19, 2023
Merged

[stable27] Fix/2708 pasting tables #4313

merged 3 commits into from
Jun 19, 2023

Conversation

backportbot-nextcloud[bot]
Copy link

Backport of #4285

Fixes #2708.

Try to read the first table row as headings.

Pasting works via `insertContent` while opening uses `setContent`.
They use the schema in different ways.
So we also need to make sure to test both for some corner cases.

`setContent` is fairly flexible in turning the input
into a valid document structure.
`insertContent` however fails to resolve structures
that would require picking lower priority parent elements.

Note: Some tests in src/tests/nodes/Table.spec.js
fail when using `insertContent` instead of `setContent`.
Pasting the correponding html table is fixed never the less.

Signed-off-by: Max <[email protected]>
@mejo-
Copy link
Member

mejo- commented Jun 19, 2023

/compile

Signed-off-by: nextcloud-command <[email protected]>
@cypress
Copy link

cypress bot commented Jun 19, 2023

2 flaky tests on run #10271 ↗︎

0 143 1 0 Flakiness 2

Details:

[stable27] Fix/2708 pasting tables
Project: Text Commit: 6b57b6cacc
Status: Passed Duration: 03:25 💡
Started: Jun 19, 2023 6:34 PM Ended: Jun 19, 2023 6:38 PM
Flakiness  sync.spec.js • 1 flaky test

View Output Video

Test Artifacts
Sync > recovers from a lost connection Output Screenshots
Flakiness  share.spec.js • 1 flaky test

View Output Video

Test Artifacts
Open test.md in viewer > Share a file with download disabled shows an error Output Screenshots

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

@mejo- mejo- merged commit 3487411 into stable27 Jun 19, 2023
32 checks passed
@delete-merged-branch delete-merged-branch bot deleted the backport/4285/stable27 branch June 19, 2023 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working format: markdown
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants