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
1 changed files with 1 additions and 1 deletions

View File

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