Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocomplete search by full string #734

Open
sssats opened this issue Jan 6, 2022 · 5 comments
Open

Autocomplete search by full string #734

sssats opened this issue Jan 6, 2022 · 5 comments

Comments

@sssats
Copy link

sssats commented Jan 6, 2022

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
Copy link

hey have you found any output for this issue

@sssats
Copy link
Author

sssats commented Nov 4, 2022

I'm using collection for different triggers.

@manikantayarramsetti1
Copy link

manikantayarramsetti1 commented Nov 4, 2022 via email

@sssats
Copy link
Author

sssats commented Nov 4, 2022

What exact problem do you have?

@manikantayarramsetti1
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants