hailwood / jQuery-Tagit

The Jquery Tagit Plugin transforms an html unordered list into a unique tagging plugin.
264 stars 109 forks source link

Request: support additional delimiters #48

Closed eranation closed 12 years ago

eranation commented 12 years ago

I would like to mimic email entering, so I'd like to provide a custom delimiter (e.g. semicolon)

Or even better, provide the regex to split, myself...

(I'll try to implement and do a pull request... )

hailwood commented 12 years ago

Hi @eranation this functionality should already be working in the plugin, simply pass in an array of triggerKeys (#L17)

This could be any of the key names defined here (#L50) or a keycode so for a semicolon you could use {triggerKeys: [186]} or for a semicolon and the comma {triggerKeys: [186, 'comma']}

I am going to close this issue now, however if you cannot get it working give me a message.

eranation commented 12 years ago

Thanks, wasn't aware of it!