mirror of
https://github.com/friendica/friendica
synced 2024-11-14 19:42:53 +00:00
cd392db078
- Move library/cropper to view/js/cropper - Move library/jquery-textcomplete to view/js/jquery-textcomplete |
||
---|---|---|
.. | ||
CHANGELOG.md | ||
jquery.textcomplete.css | ||
jquery.textcomplete.js | ||
jquery.textcomplete.min.js | ||
jquery.textcomplete.min.map | ||
LICENSE | ||
README.md |
Autocomplete for Textarea
Introduces autocompleting power to textareas, like a GitHub comment form has.
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