mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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);
|
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();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user