Pasting via dialog should provide accessible dataTransfer
|Reported by:||t.jakut||Owned by:||t.jakut|
|Priority:||Nice to have (we want to work on it)||Milestone:|
Currently pasting rich text into dialog could strip all additional information (e.g. styling) and pass only plain text into the editor. It's especially visible when pasting from Word:
- Open attached Word document.
- Select part of the sentence (e.g. first two words).
- Click "Paste" button to open paste dialog.
- Paste into dialog.
The text pasted into dialog is converted into plain text and in this form is then pasted into the editor.
There should be a way to get the original, raw pasted data from dialog, preferably from native dataTransfer. However, due to limitations of clipboard API, it can be fetched only synchronously. Probably the best way to get it from editor's dialog is to create new event, which will be fired after pasting into dialog.
The way to obtain raw data should be universal, as in the future editor may need to get some other data type, not only text/html. In this case creating a snapshot of native dataTransfer and passing it to the event should be a sufficient solution.
Change History (4)
Changed 8 weeks ago by t.jakut
comment:2 Changed 8 weeks ago by m.lewandowski
- Summary changed from Pasting via dialog should expose raw pasted data to Pasting via dialog should provide accessible dataTransfer