Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/avcs06/autocompose
A JavaScript plugin to provide UI support for Gmail like smart compose in textarea and contenteditable.
https://github.com/avcs06/autocompose
Last synced: 1 day ago
JSON representation
A JavaScript plugin to provide UI support for Gmail like smart compose in textarea and contenteditable.
- Host: GitHub
- URL: https://github.com/avcs06/autocompose
- Owner: avcs06
- License: mit
- Created: 2019-10-02T12:53:24.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-06T22:22:52.000Z (over 1 year ago)
- Last Synced: 2024-11-02T00:35:04.930Z (14 days ago)
- Language: JavaScript
- Homepage: https://avcs.pro/autocompose
- Size: 309 KB
- Stars: 10
- Watchers: 2
- Forks: 5
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# AutoCompose
A JavaScript plugin to provide UI support for Gmail like smart compose in textarea and contenteditable.### [Demo](https://avcs.pro/autocompose) | [Documentation](Documentation.md)
# Features
### General
1. Supports textarea and contenteditable fields
2. No external dependencies like jquery or bootstrap
3. Can add and remove inputs dynamically.
4. **DOES NOT** provide any suggestion algorithms or database, you have to provide the `composer`, a method which takes in current value and returns the suggestion.### Textarea
1. Provides a completely different Component `AutoComposeTextarea` to support textarea.
2. Uses overlay to show the suggestion.### Contenteditable
1. Inserts the suggestion into HTML directly.
2. Current text style will be applied to the suggestion too.### Suggestion
1. User can accept partial suggestion, by placing the cursor in the middle of the suggestion.
2. User can accept the full suggestion by placing the cursor at the end of suggestion or using keys `Tab`, `Left arrow` or `Down arrow`.
3. OnChange event provides `acceptedSuggestion`, which gives the partial suggestion if user accepts only partial suggestion.
4. OnReject event will be triggered if the shown suggestion is not accepted by user.