Opened 8 years ago
Closed 8 years ago
#16876 closed New Feature (fixed)
Pasting via dialog should provide accessible dataTransfer
Reported by: | Tomasz Jakut | Owned by: | Tomasz Jakut |
---|---|---|---|
Priority: | Nice to have (we want to work on it) | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: |
Description
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.
Attachments (1)
Change History (4)
Changed 8 years ago by
Attachment: | custom_styles.docx added |
---|
comment:1 Changed 8 years ago by
Owner: | set to Tomasz Jakut |
---|---|
Status: | new → assigned |
comment:2 Changed 8 years ago by
Summary: | Pasting via dialog should expose raw pasted data → Pasting via dialog should provide accessible dataTransfer |
---|
comment:3 Changed 8 years ago by
Milestone: | CKEditor 4.7.0 |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Version: | 4.7.0 (GitHub - major) |
Fixed by #16954.