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
[Question]: 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
How to Build a Production GrapesJS Editor: The Complete Walkthrough of Brief, Preset, Plugins, and Services
A complete walkthrough of building a production GrapesJS editor: how to choose a preset, pick plugins, and scope setup services without burning a sprint.
Tutorial
GrapesJS Inline RTE Plugins Update: CKEditor 5 v0.1.4 and Froala Inline Text Editor
CKEditor 5 Inline for GrapesJS v0.1.4 fixes Studio SDK toolbar clipping, iframe injection and link balloon bugs. Compare with Froala Inline — both $69.
Tutorial
Embed GrapesJS in Your SaaS: A Weekend Guide
Embed GrapesJS in your SaaS and ship a white-label page builder over a weekend. Honest tradeoffs, real code, and the plugins that close the UX gap.
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.