Remove special file drop handling on CKEditor for IE, it's no longer necessary. Fix issue of drop none image file on compose HTML area uploads the file twice.

This commit is contained in:
Hadi Nategh 2017-11-09 15:01:41 +01:00
parent 3cdf799a6b
commit 9f2abdd5df

View File

@ -209,10 +209,7 @@ var et2_htmlarea = (function(){ "use strict"; return et2_inputWidget.extend([et2
}; };
editor.on( 'contentDom', function() { editor.on( 'contentDom', function() {
// For Firefox
editor.document.on('drop', chkImg); editor.document.on('drop', chkImg);
// For IE
editor.document.getBody().on('drop', chkImg);
}); });
} }