You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any way to disable paste event in twemoji-textarea? I tried putting this code in contentchanged event but it didn't help. Thanks for your suggestions. ( I also tried with getElementsByID also )
<twemoji-textarea
:emojiData="emojiDataAll"
:emojiGroups="emojiGroups"
@contentChanged="changedContent"
>
</twemoji-textarea>
changedContent(event) {
if (!this.clicked) {
this.clicked = true
var userSelection = document.getElementsByClassName('twemojiTextarea')
for (let i = 0; i < userSelection.length; i++) {
userSelection[i].addEventListener('paste', function (event) {
console.log('Clicked index: ')
event.preventDefault()
})
}
}
},
The text was updated successfully, but these errors were encountered:
Is there any way to disable paste event in twemoji-textarea? I tried putting this code in contentchanged event but it didn't help. Thanks for your suggestions. ( I also tried with getElementsByID also )
The text was updated successfully, but these errors were encountered: