Skip to content
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

Desktop: CodeMirror 6 plugin API: Improve ability to register custom commands #9956

Merged
merged 1 commit into from Feb 19, 2024

Conversation

personalizedrefrigerator
Copy link
Collaborator

Summary

This pull request, as mentioned here, adds a new CodeMirror6-specific API for registering custom editor commands.

Specifically,

editorControl.registerCommand('nameHere', () => {
    return 'returnValue';
})

Previously, commands could only be registered through the legacy CodeMirror 5 compatibility layer.

@laurent22 laurent22 merged commit 2d0a53e into laurent22:dev Feb 19, 2024
10 checks passed
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.

None yet

2 participants