-
Notifications
You must be signed in to change notification settings - Fork 16
Add function to inserter to stopTrigger #3305
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
Conversation
|
Documentation has been published to https://lundalogik.github.io/lime-elements/versions/PR-3305/ |
| export interface TextEditor { | ||
| insert: (input: TextEditorNode | string) => void; | ||
| // (undocumented) | ||
| stopTrigger: () => void; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(I know this PR is still WIP, I just happened to see it.)
This change should be part of the first commit, not a separate commit 🤗
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll fix that up 🤗
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you okey with the interface @adrianschmidt ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I've got no problem with it 😄
Maybe it ought to be documented? But it's still @alpha, so not a show-stopper I guess 🙂
I think the consumer should handle this cases. I talked to @jgroth and if we configure the event to capture we can prevent certain keyboard events to ever reach the text editor. I will create a PR that updates the example. |
You can find an example here. I don't think this PR are needed. |
8437fec to
f50658d
Compare
I would still like to add a specific function to stop the trigger that the consumer can access that isn't tied directly to the functionality of creating a mention. I think it will be useful when handling some keyboard navigation cases such as the user pressing |
Fully agree! |
civing
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm okey with the PR. Just waiting for a go from @adrianschmidt
f50658d to
d18a2e9
Compare
adrianschmidt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
External API approved 😊
d18a2e9 to
cbb2b90
Compare
|
🎉 This PR is included in version 37.71.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Add's a function to the
inserterFactorycalledstopTriggerwhich the consumer can access via theTextEditor (TriggerFunction)interface.Fixes: https://github.com/Lundalogik/crm-feature/issues/4474