Open EchoEllet opened 1 month ago
Use this Diffchecker link to see the differences between the two.
I'll check if this could be an issue from flutter_quill_delta_from_html
.
Edit: I tested both HTML examples, and both gives to me exactly the Delta
what i expected. Can you provide exactly the HTML that you are copying?
Can you provide exactly the HTML that you are copying?
I have copied the same content in a different way. The system clipboard API provided me with a different HTML, I will update this issue soon since I need more time to provide more specific details.
both gives to me exactly the
Delta
what i expected.
I didn't see the Delta
that's being pasted into the editor. It can be rendering or visual issue. Did you try to replicate what I did in the example video on desktop?
Can you explain what you tried?
I forgot to mention it. Since I thought it might be a bug in the package, I ran my tests (obviously I added a test that has the HTML you passed as an example) and the Deltas
that came back to me contained what I expected (either a TODO list with its values, whether checked or unchecked). That's why I asked you for the exact HTML that you get when you copy the list (mostly to check if it's not that the package is confusing values and returning unexpected Deltas
).
Example
Assume that i testing with the HTML with all <li>
checked. When i run my tests, this is the Delta
resulting (i need to check why are empty inserts):
Sure, but the issue can be either from the editor itself or from the HTML we're copying, which can be platfrom dependent and different based on the app, operating system.
If the HTML from the platfrom Clipboard we're getting doesn't have the values we expect from what we've copying, then we will probably close this issue as unplanned.
Is there an existing issue for this?
Flutter Quill version
10.6.0
Steps to reproduce
false
https://github.com/user-attachments/assets/52c40029-7779-46d2-945e-de4b8b09d11f
You might notice the steps are not very clear, as I haven't understood the exact steps to reproduce it as more testing is needed, I'm currently in the middle of another issue however the video should give some hints.
Expected results
Would be useful to support the checkbox as well when copy and paste content from websites/apps into the editor.
IMO, this is a minor issue.
If the issue from the clipboard platform API then we will close this issue.is
Actual results
Issue is related to #2230 but the same issue can happen regardless of the plugin implementation, this issue is not a regression in version
10.6.0
Code sample
No response
Additional Context
The HTML when all the checkboxes are checked:
The HTML when all the checkboxes are unchecked: