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
Pasting list-like content to rich text fields may result in content loss #9151
Comments
Thank you @saevarom! I believe this is a combination of three different issues:
I think all 3 points were conscious design choices on my part, which seemed to make sense in isolation, but taken all together this clearly isn’t up to scratch. I’ll probably have to make changes for all three points, though the content loss is by far the most problematic. |
Hi @thibaudcolas i'm currently looking up on this, i've been able to reproduce the error on a new site which i setup. Trying to look more on the rich text system, to see possible solutions i'll propose. |
@fyunusa here is the code for the first issue: Second issue: https://github.com/springload/draftail/blob/988c809fb828e3d583932255df845e3dd08cac4f/src/api/constants.ts#L163-L165 As you can see this is across three different projects, all of which are used in Wagtail, but definitely standalone projects. I wouldn’t recommend working on this, as there’s a lot to it. If you want to proceed with this – I’d recommend working on the third issue, which is clearly a bug and where there are no downsides to fixing it. The best next step would be to set up https://github.com/springload/draftjs_exporter for local development and then reproduce the issue there. |
ok, thanks @thibaudcolas. I'll stay calm for now |
Will look for other issues to work on |
Issue Summary
When pasting "list-like" content into a rich text field with other "list-like" content, the editor will try to convert all "list-like" content sections to lists, and then forget about them. It's hard to explain, but I've included a video of what happens:
Bug description on Youtube
Steps to Reproduce
4. Create a line below the first section containing:
It should look like this:
Any other relevant information. For example, why do you consider this a bug and what did you expect to happen instead?
Technical details
The text was updated successfully, but these errors were encountered: