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

Numbered list in callout lost on copy #6727

Open
max-nextcloud opened this issue Dec 3, 2024 · 1 comment
Open

Numbered list in callout lost on copy #6727

max-nextcloud opened this issue Dec 3, 2024 · 1 comment
Labels
1. to develop bug Something isn't working

Comments

@max-nextcloud
Copy link
Collaborator

Describe the bug
Lists inside callouts are not persisted when copying the file.

I suspect the created markdown is parsed to contain a list but that is not valid in our tiptap schema.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new file. Insert a callout and type a numbered list.
  2. Save and close the file.
  3. Copy the file to another file and open that.
  4. See no numbers inside the callout.

Expected behavior
Copied file looks just like the original.

Screenshots
Before copying:

Image

After copying:

Image

Server details:
cloud.nextcloud.com with RC1 of 30.0.3

Client details:
Firefox 133.0

File content after the copy
::: info
Please make sure to prepare your dev tools to capture the session so we can debug it.

0) Open the file.

1) Open your dev tools.

2) Clear your console and network tabs

3) Force reload the page

4) Run OCA.Text.debugYjs() and make sure you see the output (warning)

5) Confirm `pendingStructs` is `null`

:::
@max-nextcloud max-nextcloud added bug Something isn't working 1. to develop labels Dec 3, 2024
@github-project-automation github-project-automation bot moved this to 🧭 Planning evaluation (don't pick) in 📝 Office team Dec 3, 2024
@max-nextcloud
Copy link
Collaborator Author

It's even worse if the list items are not separated by blank lines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop bug Something isn't working
Projects
Status: 🧭 Planning evaluation (don't pick)
Development

No branches or pull requests

1 participant