-
Notifications
You must be signed in to change notification settings - Fork 20
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
Listening for focus and blur event #23
Comments
There is no vue-codemirror6/src/components/CodeMirror.ts Lines 265 to 280 in de7708e
|
@logue It doesn't seem to work unfortunately. Here's a Stackblitz replication: https://stackblitz.com/edit/vue-ump37q?file=src%2Fcomponents%2FEditor.vue |
@logue It unfortunately doesn't seem like f5d4fd9 fixed it. There's still no focus event triggered :( Here's an updated Stackblitz (with version 1.1.26): https://vue-ump37q.stackblitz.io |
A possible solution is to add a focusChangeEffect as an extension. Tested to be working locally, see example below.
|
In 1.1.27, However, regarding I skipped the implementation of |
I have previously used the vue wrapper for CodeMirror 5 (https://github.com/RennZhang/codemirror-editor-vue3) which supported binding the
focus
andblur
event directly on the component. Is it possible to do this as well withvue-codemirror6
?Example:
The text was updated successfully, but these errors were encountered: