Debian packaging for ‘jquery-textcomplete’.
Ben Finney c39e81f3dc Merge tag 'upstream/1.7.1' | 8 years ago | |
---|---|---|
doc | 8 years ago | |
src | 8 years ago | |
.gitattributes | 8 years ago | |
.gitignore | 8 years ago | |
CHANGELOG.md | 8 years ago | |
Gruntfile.js | 8 years ago | |
LICENSE | 8 years ago | |
README.md | 8 years ago | |
bower.json | 8 years ago | |
package.json | 8 years ago |
Introduces autocompleting power to textareas, like a GitHub comment form has.
Demo.
$('textarea').textcomplete([{
match: /(^|\b)(\w{2,})$/,
search: function (term, callback) {
var words = ['google', 'facebook', 'github', 'microsoft', 'yahoo'];
callback($.map(words, function (word) {
return word.indexOf(term) === 0 ? word : null;
}));
},
replace: function (word) {
return word + ' ';
}
}]);
See doc dir.
Licensed under the MIT License.
Patches and code improvements were contributed by:
https://github.com/yuku-t/jquery-textcomplete/graphs/contributors