Debian packaging for ‘jquery-textcomplete’.
Ben Finney c39e81f3dc Merge tag 'upstream/1.7.1' | il y a 8 ans | |
---|---|---|
doc | il y a 8 ans | |
src | il y a 8 ans | |
.gitattributes | il y a 8 ans | |
.gitignore | il y a 8 ans | |
CHANGELOG.md | il y a 8 ans | |
Gruntfile.js | il y a 8 ans | |
LICENSE | il y a 8 ans | |
README.md | il y a 8 ans | |
bower.json | il y a 8 ans | |
package.json | il y a 8 ans |
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