zurb / tribute

ES6 Native @mentions
https://zurb.github.io/tribute/example/
MIT License
2.04k stars 305 forks source link

Autocomplete search by full string #734

Open sssats opened 2 years ago

sssats commented 2 years ago

I'm implementing Rich text editor with mention feature using Froala and Tribute. I need 2 mention sceneries: 1 - using @ and trigger menu after 1 character 2 - without using any trigger but starting from 3 characters. I'm using two instances with different options and on the first look it works well, but autocomplete search strategy is different from not autocomplete, it search by letters itself not by whole string. When i'm entering "aaa" it triggers for @Mikkel Westergaard Larsen which is not needed for me. image When writing random text it triggers to many times at random words. So the question is how to make autocomplete search by string not letters ?

manikantayarramsetti1 commented 1 year ago

hey have you found any output for this issue

sssats commented 1 year ago

I'm using collection for different triggers.

manikantayarramsetti1 commented 1 year ago

Hi,

Can You Please Send Code for how you approached this thing.Can you please send the tribute.js and index.html where you made changes. I struck with this issue

Thanks, MAnikanta

On Fri, 4 Nov 2022 at 14:20, Stanislav @.***> wrote:

I'm using collection for different triggers.

— Reply to this email directly, view it on GitHub https://github.com/zurb/tribute/issues/734#issuecomment-1303131433, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATDOXMJMTQHIF3HBIAX7TILWGTE5XANCNFSM5LL55CTQ . You are receiving this because you commented.Message ID: @.***>

sssats commented 1 year ago

What exact problem do you have?

manikantayarramsetti1 commented 1 year ago

What exact problem do you have?

if i type del then it is suggesting two. they are

  1. Delware
  2. Rhode Island But i want only delware to suggest, i dont want Rhode Island. I want to match with entire string not with characters

https://zurb.github.io/tribute/example/ can you try here