Skip paste handling if composer textarea lost focus

This commit is contained in:
Vinoth Kannan 2017-12-06 19:36:13 +05:30
parent 4531563717
commit 7d88cfde0e
1 changed files with 4 additions and 0 deletions

View File

@ -640,6 +640,10 @@ export default Ember.Component.extend({
},
paste(e) {
if (!$(".d-editor-input").is(":focus")) {
return;
}
const { clipboard, types } = clipboardData(e);
const placeholder = `${ I18n.t('pasting') }`;
let plainText = clipboard.getData("text/plain");