mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-24 15:49:59 +08:00
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:
@ -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());
|
||||
|
||||
|
Reference in New Issue
Block a user