Not abled to when cmd + z pressed & can we disable cmd + z completely from editor?
You can track undo/redo events and managing shortcuts (eg. in your case, removing default one) with Keymaps API
Read full answer below โQuestion
Hi,
I can't able to track cmd + z pressed in anywhere since i want to perform some actions when undoing changes, i have acheived that with undo manager when i click on undo button but i can't do with cmd + z, is there any way to do this?
Or i just want to restrict the ctrl + z option since have undo button in editor itself, is that possible?
Thanks
Answers (1)
You can track undo/redo events and managing shortcuts (eg. in your case, removing default one) with Keymaps API
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1639
Would it be possible to have change settings under style manager in a way that it has href when a link is created?
I'm using preset newsletter with built-in RTE (do not want to use ck editor like the demo) In order to make any text to link, i need to cli...
Issue #3146
There are so many clicks required to enable RTE can i edit text with just single click
There are so many clicks required to enable RTE can i edit text with just single click i tried by adding attribute contenteditable but stor...
Issue #3577
The UndoManager hasUndo() method returns true when it shouldnt
I am trying to disable the undo button when there are no undo actions to do. To do so, I am listening to 'change:changesCount' event, and u...
Issue #467
Set the focus to some other element
I am opening a pop up on click o some element, but the focus is still on the element on which I click. I want to focus the pop up element....
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins โPremium plugins ship with support, regular updates, and production-ready features โ save days of integration work.
Browse premium plugins โRelated tutorials
In-depth guides on the same topic.
Tutorial
Introducing Search on GJS.Market
GJS.Market now has one search across everything we publish โ plugins, articles, community questions, guides, authors and services. Press โK from any page.
Tutorial
GJS.Market Is Now Available for India ๐ฎ๐ณ
GJS.Market is expanding its global presence with a dedicated experience for developers, agencies, SaaS companies, and digital creators in India
Tutorial
How to Build an AI-Powered Page Builder with GrapesJS in 2026
What we learned building GJSDocs โ from simple AI text generation to structured, context-aware visual editing
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.