-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Extensions can't register CodeMirror onKeyEvent handlers #1113
Comments
The next version of Zen Coding plugin won’t use Although, there might be issues with Tab key (ZC overrides this key to expand abbreviations), but I need more investigation on this. |
Thanks for the heads up ! |
Hi David, Thanks a lot for your feedback - Reviewed and removed unrelated story links. This issue is covered by Trello Card #572. I'm closing the issue here. Please remember to vote on the Trello card. |
closing |
Just uploaded new Zen Coding for CodeMirror2 plugin: https://github.com/sergeche/zen-coding/blob/v0.7.1/plugins/codemirror2/editor.js It does’t use The integration of ZC plugin is also much simpler now: you just need to include |
Thanks a lot for the update Serge, it looks like a really nice improvement. However, brackets does not extend those defaults: it overwrites them when creating a editor instance. This seems to me like a separate issue, so I'll open a new one. |
Some extensions may need to listen to all CodeMirror onKeyEvent events directly, to override the default behavior currently described in the Editor._installEditorListeners() method.
For instance, this would would allow the creation of extensions which would implement support for zen-coding for CodeMirror2, which is currently only possible by modifying Brackets Editor class itself.
Note: Since the CodeMirror event mapping implementation may become more generic in the future, this could be achieved by exposing this mapping mechanism.
The text was updated successfully, but these errors were encountered: