Continued implementation of attachment drag+drop

Cannot get working in chrome reliably due to conflicting handling of
events and drag+drop API. Getting attachment drop working breaks other
parts of TinyMCE.
Implementing current work as should still work for MD editor and within
FireFox.

Related to #1460
This commit is contained in:
Dan Brown
2020-09-13 18:29:48 +01:00
parent e305ba14d9
commit ad48cd3e48
5 changed files with 17 additions and 6 deletions

View File

@ -638,8 +638,8 @@ class WysiwygEditor {
});
// Custom drop event handling
editor.on('drop', function (event) {
console.log('drop')
let dom = editor.dom,
rng = tinymce.dom.RangeUtils.getCaretRangeFromPoint(event.clientX, event.clientY, editor.getDoc());