StevenDevooght / tinyMCE-mention

Mention/Autocomplete plugin for tinyMCE WYSIWYG editor.
http://stevendevooght.github.io/tinyMCE-mention/
220 stars 95 forks source link

Option to select the 1st item by default #76

Closed TKharaishvili closed 1 year ago

TKharaishvili commented 5 years ago

Looks like this has already been requested here - https://github.com/StevenDevooght/tinyMCE-mention/issues/55

I would like to have a boolean flag to enable this, it's especially useful when the user is filtering through the items and there's only one left to select.

TKharaishvili commented 5 years ago

I think this is as easy as passing the index of an item to the render function. The render function will then test if the index is equal to 0 and add the active class to the li if it is.

I can send you a PR if you like this solution.

TKharaishvili commented 1 year ago

Closing due to no response