-
Notifications
You must be signed in to change notification settings - Fork 4
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
Enable tag search in editor after typing #
#192
Comments
@guoliu I'm thinking something like this
on the editor side, I'm looking at Let me know if you have any suggestions on the API or if I'm on the right path. I've been struggling a little bit understanding Quill last weekend, but I've set aside my today for this issue so hopefully i can figure something out. I'm really keen on this =) |
Hi @mayyyc, Thanks for diving into this repo! I'm refactoring this repo and plan to remove In this PR, we added a new component called While typing Feel free to comment if you have any ideas! |
@robertu7 so all the mentionLoading/mentionUsers/mentionListComponent will be handled outside the editor? and we only listen to @ or # in the editor and show That sounds like a nice and clean solution, I like it. I'll look into the implementation of mention module a little more and keep this in mind. Thanks for the update. |
@mayyyc Yes! that's what I thought. Since what I am working on could block the development of For mention user ( For tag adding ( |
@robertu7 how is your progress on modules/mention? I'm thinking it will handle tag as well, is that right? If you haven't started, i might give it a go. |
@mayyyc We are working on other features, so #195 may not have any commit during the next few weeks. Please feel free to take it, thanks a lot! BTW, thematters/matters-web#1440 has already been deployed to production, currently used by 「添加精選作品」and「添加我的作品」in tag detail page, you might have a try. |
Is your feature request related to a problem? Please describe.
Currently an user can type
@
in editor and enable user search and selection. As tag become more important, an user should also be able to type#
in editor and enable tag search and selectionDescribe the solution you'd like
When an user type
#
and some content in editor, a dropdown of tags should appear according to the content the user typed, allowing the user to select which tag s/he would like to mention. This should be similar with typing@
for an user.Additional context
Currently the editor API only support mentioning user, see example here. We need to either add mention tag to the API, or generalize to any type of mentioning.
The text was updated successfully, but these errors were encountered: