Drag-and-drop does not work with contenteditable elements

Originator:zach
Number:rdar://32996673 Date Originated:June 26 2017, 11:25 PM
Status:Closed Resolved:true
Product:iOS + SDK Product Version:11.0 Beta 2 (15A5304i)
Classification:Serious Bug Reproducible:Sometimes
 
Area:
Safari

Summary:
Issue initially found in the editor on squarespace.com, which appears to use a derivative of CKEditor. CKEditor is a rich text control that uses the HTML contenteditable on large DOM trees - not necessarily textareas - to provide a web-app WYSIWYG experience.

Steps to Reproduce:
1. Visit ckeditor.com
2. Enter editor on main page
3. Open Notes in Slide-Over and/or Split View.
4. Select text in the editor
5. Attempt to enter a drag with the content
6. Select text in Notes
7. Engage a drag and attempt to drop on editor

Expected Results:
I can drag text in and out of web-based editors.

Observed Results:
#4: Engaging a drag simply moves the carat, deselecting text.
#7: If the editor instance is configured to accept file uploads, the drop content is attempted to be uploaded. It looks like it picks the first(?) content form, as an image uploaded successfully. If the editor isn't configured to do this, Safari treats it like any other drop; for instance, a dropped URL will change the page - which is bad!!

Version:
11.0 Beta 2 (15A5304i)

Notes:


Configuration:
iPad Pro 10.5”, 1st generation

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!