-
Hi, I would like know to how to prevent browser default page saving dialog pop-out when clicking CTRL+ S. Below is my command code for saving function using GrapesJS Keymap
In order to bypass browser default page saving dialog pop-out in GrapesJS saving command, the Anyone has any idea or experience with it? Thank you. |
Beta Was this translation helpful? Give feedback.
Answered by
artf
Jun 19, 2023
Replies: 1 comment 3 replies
-
There is an option for that use case (I'll probably update the docs with an example) keymaps.add('ns:save-keymap', '⌘+s, ctrl+s', editor => {
editor.runCommand('save-db');
}, {
prevent: true
}); |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
HonTung
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is an option for that use case (I'll probably update the docs with an example)