alexgorbatchev/jquery-textext — pull request #13 by sstok (2012-01-23 15:57:28+00:00)
Title: Allow for changing an tag when clicking on it

I have add an new tagClick event which allows for changing the value of an tag by clicking on it.

The event will receive the data as Item and must return it as an Item.
Writing an automated test-case was not possible since I don''t have the software for running them.

The usage is actually self explanatory.

```JavaScript
// Data is the data as it was added
textarea.bind('tagClick', function (e, Data){
// Normally you would use something more fancy, like jQuery UI dialog.
var newLabel = window.prompt('New value', Data);

if (newLabel)
Data = newLabel;
});
```