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

Low-level CodeMirror access? #17

Open
AntJanus opened this issue May 15, 2017 · 2 comments
Open

Low-level CodeMirror access? #17

AntJanus opened this issue May 15, 2017 · 2 comments
Labels

Comments

@AntJanus
Copy link

I'm struggling here a bit. CodeMirror has a ton of methods defined on it that cannot be accessed via config. One thing CM does is intercept ctrl+s action which means that whenever I try to register the hotkey using another module, the event, for some reason, doesn't bubble up.

So instead, I want to use the CodeMirror.commands and register a save method. Is there any way to get an instance of CodeMirror back after giving it a config so that these things can be accessed?

@rlodge
Copy link

rlodge commented May 23, 2017

Above pull request adds an event that can be subscribed to that provides a handle to the instance for low-level access.

@yabab-dev
Copy link
Owner

Did you try this : #20 (comment) ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants