podio / jquery-mentions-input

MIT License
985 stars 333 forks source link

Don't erase the "@" after selecting a username #177

Open felixmaxime opened 6 years ago

felixmaxime commented 6 years ago

How could I make it so that when I choose the username that I want from the dropdown, the "@" remains in the textarea?

Right now if I type in "@usern" and then click "username", the textarea will autocomplete to "username" but I want it to autocomplete to "@username".

How could I do this?

sergeysviridenko commented 6 years ago

@felixmaxime Actually you can use something like this { id:9, name:'@username', display: 'username', 'type':'contact' },. It should help you.