Skip to content

HAR-9057 - getting super editor keydown event for enabling agreement link updates#433

Closed
mattConnHarbour wants to merge 1 commit intomainfrom
HAR-9057
Closed

HAR-9057 - getting super editor keydown event for enabling agreement link updates#433
mattConnHarbour wants to merge 1 commit intomainfrom
HAR-9057

Conversation

@mattConnHarbour
Copy link
Copy Markdown
Contributor

@mattConnHarbour mattConnHarbour commented Mar 28, 2025


const handleSuperEditorKeydown = (event) => {
emit('editor-keydown', { editor: editor.value });
props.options.onKeydown({editor: editor.value })
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@harbournick Am I using this as intended? I was having issues just using an "emit" before.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer to not add more hooks here that will complicate the API. Couldn't we just use the existing onUpdate hook?

Copy link
Copy Markdown
Collaborator

@harbournick harbournick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See note


const handleSuperEditorKeydown = (event) => {
emit('editor-keydown', { editor: editor.value });
props.options.onKeydown({editor: editor.value })
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer to not add more hooks here that will complicate the API. Couldn't we just use the existing onUpdate hook?

@harbournick
Copy link
Copy Markdown
Collaborator

Closing this one after discussion. Based on the requirements, it seems that an existing hook like onUpdate will do the trick.

@harbournick harbournick deleted the HAR-9057 branch June 6, 2025 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants