| 
				
					 | 
			9 years ago | |
|---|---|---|
| .. | ||
| dist | 9 years ago | |
| doc | 9 years ago | |
| src | 9 years ago | |
| .gitattributes | 9 years ago | |
| .meteor-portable | 9 years ago | |
| .npmignore | 9 years ago | |
| CHANGELOG.md | 9 years ago | |
| Gruntfile.js | 9 years ago | |
| LICENSE | 9 years ago | |
| README.md | 9 years ago | |
| bower.json | 9 years ago | |
| package.json | 9 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