mbenford / ngTagsInput

Tags input directive for AngularJS
http://mbenford.github.io/ngTagsInput
MIT License
1.64k stars 541 forks source link

How to handle tags pasted from clipboard #858

Open ujjaldey opened 6 years ago

ujjaldey commented 6 years ago

Hi, Just wondering if we can paste a list of comma separated tags from clipboard and the directive can automatically parse them and create multiple tags. Currently the whole text is getting converted to a single tag.

image

kashcode commented 6 years ago

http://mbenford.github.io/ngTagsInput/documentation/api set addOnPaste to true, default splitting char is comma