[CKEditor Dev] #16908: It's not possible to paste file on Chrome on Mac

0 views
Skip to the first unread message

CKEditor

unread,
17 Mar 2017, 10:00:5817/03/2017
to ckeditor...@googlegroups.com
#16908: It's not possible to paste file on Chrome on Mac
-------------------------------------------------+------------------------
Reporter: pjasiun | Owner:
Type: Task | Status: new
Priority: Must have (possibly next milestone) | Milestone:
Component: General | Version: 4.5.0 Beta
Keywords: |
-------------------------------------------------+------------------------
And it could be possible.

What Chrome gives, when I paste a file is DataTransfer (a.k.a.
ClipboardData) object with an empty "files" property, but with 2 "items":
first with a filename and the second with a file. It means it is possible
to get a file from the second "item", on paste.

Unfortunately, when the upload plugin was implemented there was only one
item on Chrome and only the first item is handled (see
https://github.com/ckeditor/ckeditor-
dev/blob/685fc7474fab779afe76edcf36011d2fb6bafab8/plugins/clipboard/plugin.js#L2545).
If this line will be replaced with a loop it should be possible to get the
file.

Note that on Windows pasted file is not available at all.

Also, note that now you do not need try-catch block there since items have
a "kind" property which let you check if it is a file or a string.

--
Ticket URL: <http://dev.ckeditor.com/ticket/16908>
CKEditor <http://ckeditor.com/>
The text editor for the Internet

CKEditor

unread,
5 Apr 2017, 09:41:1605/04/2017
to ckeditor...@googlegroups.com
#16908: It's not possible to paste file on Chrome on Mac
--------------------------------------------------+------------------------
Reporter: pjasiun | Owner:
Type: Task | Status: confirmed

Priority: Must have (possibly next milestone) | Milestone:
Component: General | Version: 4.5.0 Beta
Resolution: | Keywords:
--------------------------------------------------+------------------------
Changes (by j.swiderski):

* status: new => confirmed


--
Ticket URL: <http://dev.ckeditor.com/ticket/16908#comment:1>

CKEditor

unread,
22 May 2017, 04:25:0522/05/2017
to ckeditor...@googlegroups.com
#16908: It's not possible to paste file on Chrome on Mac
-------------------------------------------------+-------------------------
Reporter: pjasiun | Owner:
| beata_delura
Type: Task | Status: assigned
Priority: Must have (possibly next | Milestone:
milestone) |

Component: General | Version: 4.5.0 Beta
Resolution: | Keywords:
-------------------------------------------------+-------------------------
Changes (by beata_delura):

* owner: => beata_delura
* status: confirmed => assigned


--
Ticket URL: <http://dev.ckeditor.com/ticket/16908#comment:2>

CKEditor

unread,
5 Jun 2017, 06:45:5505/06/2017
to ckeditor...@googlegroups.com
#16908: It's not possible to paste file on Chrome on Mac
-------------------------------------------------+-------------------------
Reporter: pjasiun | Owner:
| beata_delura
Type: Task | Status: review
Priority: Must have (possibly next | Milestone:
milestone) |

Component: General | Version: 4.5.0 Beta
Resolution: | Keywords:
-------------------------------------------------+-------------------------
Changes (by beata_delura):

* status: assigned => review


--
Ticket URL: <http://dev.ckeditor.com/ticket/16908#comment:3>

CKEditor

unread,
27 Jun 2017, 05:40:1427/06/2017
to ckeditor...@googlegroups.com
#16908: It's not possible to paste file on Chrome on Mac
-------------------------------------------------+-------------------------
Reporter: pjasiun | Owner:
| beata_delura
Type: Task | Status: assigned
Priority: Must have (possibly next | Milestone:
milestone) |

Component: General | Version: 4.5.0 Beta
Resolution: | Keywords:
-------------------------------------------------+-------------------------
Changes (by beata_delura):

* status: review => assigned


--
Ticket URL: <http://dev.ckeditor.com/ticket/16908#comment:4>

Reply all
Reply to author
Forward
0 new messages