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