Skip to content

[stable27] Fix/2708 pasting tables - #4313

Merged
mejo- merged 3 commits into
stable27from
backport/4285/stable27
Jun 19, 2023
Merged

[stable27] Fix/2708 pasting tables#4313
mejo- merged 3 commits into
stable27from
backport/4285/stable27

Conversation

@backportbot-nextcloud

Copy link
Copy Markdown

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 <max@nextcloud.com>
@mejo-

Copy link
Copy Markdown
Member

/compile

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@cypress

cypressBot commented Jun 19, 2023

Copy link
Copy Markdown

2 flaky tests on run #10271 ↗︎

014310Flakiness2

Details:

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

ViewOutputVideo

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

ViewOutputVideo

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

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

@mejo-
mejo- merged commit 3487411 into stable27Jun 19, 2023
@delete-merged-branch
delete-merged-branchBot deleted the backport/4285/stable27 branch June 19, 2023 18:46
@blizzzblizzz mentioned this pull request Jul 10, 2023
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugSomething isn't workingformat: markdown

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@mejo-@max-nextcloud@nextcloud-command