FIX: Image pasted twice when it copied from browser
This commit is contained in:
parent
5cceb95f92
commit
be848b8a5c
|
@ -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();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue