Skip to content
This repository has been archived by the owner on Nov 18, 2017. It is now read-only.

onMentionSelected hook #2

Open
mxstbr opened this issue May 7, 2017 · 3 comments
Open

onMentionSelected hook #2

mxstbr opened this issue May 7, 2017 · 3 comments

Comments

@mxstbr
Copy link
Contributor

mxstbr commented May 7, 2017

This would allow developers to specify how to render their selected mention. It should also be possible to allow them to make the suggestions array data any data structure they want, since they can just format it at the end to fit into the editor.

@oyeanuj
Copy link

oyeanuj commented May 7, 2017

I think a corresponding function that you might need is onMentionBackspace. The default can be the function that you have right now but the user can override it.

@mxstbr
Copy link
Contributor Author

mxstbr commented May 7, 2017

Agree, what about calling them onMentionSelection and onMentionDeletion?

@oyeanuj
Copy link

oyeanuj commented May 7, 2017

Maybe onMentionInsertion instead of selection (since arrow keys are technically selecting it?)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants