[Mobile] : Allow mention #637
-
The use case is that I want to mention a user using @ keyword in quill editor as we do with other social media apps and show up the overlay for possible users, similar to tagging. The first challenge is to trigger an event when a keyword is hit. I found that this can be done by listening to the The second challenge is to show an overlay just below the cursor where the keyword was detected. I used The third challenge is to get the text after the keyword. For example, If I type If this is something not possible in the current lib then let me know how can I achieve it and if this is something the library is looking for then maybe I can contribute back with a PR. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 4 replies
-
Something similar to https://github.com/quill-mention/quill-mention |
Beta Was this translation helpful? Give feedback.
-
This would be incredible and will become necessary as more people use this package. I need it myself, but for now I'm going to build an overlay to populate mentions and then populate them into quill using various controllers. But having this built in would be ideal |
Beta Was this translation helpful? Give feedback.
-
I also need this feature, but would prefer NOT to have this feature provided by quill. This is fairly simple to implement on top of quill, I hope they maintain a lean and simple code base with quill and clean up existing bugs and issues. |
Beta Was this translation helpful? Give feedback.
-
Refer to this PR memspace/zefyr#594 |
Beta Was this translation helpful? Give feedback.
-
I have successfully achieved a working mention system using @(username). But I did it by listening to each character change in the controller and when it sees It works very well, but its done outside the context of the quill editor. It was not to difficult to do. I would love to integrate it into quill itself somehow but I don't understand where to start to have it work inside of flutter quill and I believe my code is quite messy and might not conform to the clean design that is here. If you like I could try to put my code into here if others want it, but as I said, its quite messy but works :) |
Beta Was this translation helpful? Give feedback.
-
Hey, Check out my example here : https://github.com/ketan10592/flutter_quill_example |
Beta Was this translation helpful? Give feedback.
Hey, Check out my example here : https://github.com/ketan10592/flutter_quill_example
you can find how to add (@)mention and (#)HashTag in flutter_quill.