FIX: Image pasted twice when it copied from browser

This commit is contained in:
Vinoth Kannan 2017-12-07 21:23:31 +05:30
parent 5cceb95f92
commit be848b8a5c

View File

@ -435,7 +435,7 @@ export default Ember.Component.extend({
const { types } = clipboardData(e); const { types } = clipboardData(e);
this._pasted = true; this._pasted = true;
if (types.includes("text/plain")) { if (types.includes("text/plain") || types.includes("text/html")) {
e.preventDefault(); e.preventDefault();
} }
}); });