Low-level CodeMirror access?
AntJanus opened this issue · 2 comments
AntJanus commented
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 commented
Above pull request adds an event that can be subscribed to that provides a handle to the instance for low-level access.
yabab-dev commented
Did you try this : #20 (comment) ?