mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 04:59:22 -06:00
Skip paste handling if composer textarea lost focus
This commit is contained in:
parent
4531563717
commit
7d88cfde0e
@ -640,6 +640,10 @@ export default Ember.Component.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
paste(e) {
|
paste(e) {
|
||||||
|
if (!$(".d-editor-input").is(":focus")) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const { clipboard, types } = clipboardData(e);
|
const { clipboard, types } = clipboardData(e);
|
||||||
const placeholder = `${ I18n.t('pasting') }`;
|
const placeholder = `${ I18n.t('pasting') }`;
|
||||||
let plainText = clipboard.getData("text/plain");
|
let plainText = clipboard.getData("text/plain");
|
||||||
|
Loading…
Reference in New Issue
Block a user