-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Keyhandler #746
Comments
@TomasLongo Hi! var editor = new EditorJS();
editor.save(); // here editor saves your data and returns JSON object You can wrap method document.addEventListener('keydown', function() {
// here you need to check CTRL+ENTER press before firing `save` method
editor.save().then(...);
}, false); OR another easier way is to use some library for shortcuts |
@khaydarov Thanks for getting back. The actual saving is not the problem. Im not able to capture the It seems like Am I missing something? Tomas |
@TomasLongo |
Thanks for replying. Glad to here that you're working on this. Does an issue exist on that topic, which I could subdscribe to? |
Any news or workaround to capture |
I'm also interested in whether any progress has been made here. I need to be able to intercept and stop |
hey, any news ? |
i think This is required to help fix some issues in my columns plugin @calumk/editorjs-columns |
Hi,
is there a way to add custom keyhandlers?
My case: I want to listen to
ctrl + enter
in order to save my doc.Thanks in advance,
Tomas
The text was updated successfully, but these errors were encountered: