I need to read clipboard before user pastes content into the input field.
Say, if the user tries to paste text into a input field of type of number. The text wont get pasted unless if the pasted word has e[like in hello](guess browser is accepting e since user can give 1e5 for 100000)
Hence i want to read the clipboard content to check if its number or its in the format [num]e[num] before it gets pasted into the input field.
I am not sure how to use the clipboardData.getData() in angular.
Aucun commentaire:
Enregistrer un commentaire