Open
Description
Is there an existing issue for this?
- I have searched the existing issues
Flutter Quill version
9.5.13
Steps to reproduce
Copy HTML with bullets on web, paste.
A few problems here:
First off the browser won't actually let non plain text formats through using the clipboard API, so the clipboard service always thinks there is no html on the clipboard. On web, non text formats are only available from the paste event.
Steps to fix:
- Handle "paste" event on window instead of using standard paste hotkey logic (note that the same path is also needed to paste things like images from the clipboard on web). If a quill node is focused, handle the paste event and insert the data into the quill editor. The paste event will contain, files, and multiple clipboard formats that are unavailable to the browser clipboard API.
- If button action is pressed and initiates a paste, unfortunately, the only way to get the data is using a browser extension (this is what google docs does). Until there is a browser extension for flutter quill, quill should do what google docs does when you don't have the browser extension installed, which is display a dialog when pressing the paste button that explains the limitation and shows the hotkey they need to press in order to paste. Once there is an extension, this dialog can provide a link to install the browser extension.
Expected results
Bullets are preserved
Actual results
Bullets are not preserved
Code sample
Code sample
[Paste your code here]
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
[Paste your logs here]
Metadata
Metadata
Assignees
Labels
Pending additional information or feedback from the issue creatorPending additional information or feedback from the issue creatorThis issue cannot be resolved due to an obstacle or dependency.This issue cannot be resolved due to an obstacle or dependency.Something isn't workingSomething isn't workingExtra attention is neededExtra attention is neededMinimal impact or cosmetic issue. Can be resolved at a later time without affecting overall functionMinimal impact or cosmetic issue. Can be resolved at a later time without affecting overall functionIssues or feature requests specific to the Web platform.Issues or feature requests specific to the Web platform.