Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ruiluntran/summernote-handlebars-autocomplete
https://github.com/ruiluntran/summernote-handlebars-autocomplete
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/ruiluntran/summernote-handlebars-autocomplete
- Owner: ruiluntran
- License: mit
- Created: 2023-12-17T19:22:57.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-17T21:09:44.000Z (about 1 year ago)
- Last Synced: 2024-05-14T14:44:22.556Z (7 months ago)
- Language: JavaScript
- Size: 237 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-summernote - summernote-handlebars-autocomplete
README
# Summernote Handlebars Autocomplete plugin
Summernote handlebars autocomplete plugin for [summernote](https://github.com/summernote/summernote/).
## Demo
https://ruiluntran.github.io/summernote-handlebars-autocomplete/
## Installation
Include the required files and the plugin file after summernote.min.js file.
``` html
```
## Configuration
To configure the plugin, pass in the options object with the key: `handlebarsAutocomplete` to summernote.
### Example
```javascript
$('#summernote').summernote({
placeholder: 'Placeholder',
handlebarsAutocomplete: {
getSuggestions: (value) => {
const suggestions = [
{
display: 'userName',
value: 'ruiluntran'
},
{
display: 'ensDomain',
value: 'ruiluntran.eth'
}
];
return suggestions.filter(suggestion => {
return suggestion.display.includes(value);
});
}
}
});
```## Credits
Forked from https://github.com/team-loxo/summernote-at-mention
## License
The contents of this repository is licensed under [The MIT License.](https://opensource.org/licenses/MIT)