Tets mediatag plugin using widgets

This commit is contained in:
yflory
2018-04-19 17:45:08 +02:00
parent 449ae579e5
commit 5eab39ad75
4 changed files with 60 additions and 140 deletions

View File

@@ -333,6 +333,8 @@ define([
var editor = config.ckeditor;
editor.document.on('drop', function (ev) {
var dropped = ev.data.$.dataTransfer.files;
editor.document.focus();
if (!dropped || !dropped.length) { return; }
onFileDrop(dropped, ev);
ev.data.preventDefault(true);
});