Merge branch 'mediatagplugin' into staging

This commit is contained in:
yflory
2018-04-27 17:57:22 +02:00
4 changed files with 137 additions and 45 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);
});