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