Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
rabuzarus dd2a8fd852 jquery.textcomplete update to v1.3.4 5 years ago
..
CHANGELOG.md jquery.textcomplete update to v1.3.4 5 years ago
LICENSE rework autocomplete: initial commit 5 years ago
README.md jquery.textcomplete update to v1.3.4 5 years ago
jquery.textcomplete.css rework autocomplete: update jquery.textcomplete to v1.3.3 5 years ago
jquery.textcomplete.js jquery.textcomplete update to v1.3.4 5 years ago
jquery.textcomplete.min.js jquery.textcomplete update to v1.3.4 5 years ago
jquery.textcomplete.min.map jquery.textcomplete update to v1.3.4 5 years ago

README.md

Autocomplete for Textarea

npm version Bower version Analytics

Introduces autocompleting power to textareas, like a GitHub comment form has.

Demo

Demo.

Synopsis

$('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 + ' ';
    }
}]);

Dependencies

  • jQuery (>= 1.7.0) OR Zepto (>= 1.0)

Documents

See doc dir.

License

Licensed under the MIT License.

Contributors

Patches and code improvements were contributed by:

https://github.com/yuku-t/jquery-textcomplete/graphs/contributors