Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ruiluntran/summernote-handlebars-autocomplete


https://github.com/ruiluntran/summernote-handlebars-autocomplete

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

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)