Ability to get a list of all the shortcut loaded in the editor #2198
-
Hello, We would like to show a complete list of the usable keymaps / shortcuts from the editor and the extensions loaded. I have tried to get it using the
Obviously, this is not very reliable as they are internal methods of I could also take all the plugins individually and get their Is there any simple way to get all the keymaps from the Editor ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Do you just want the registered keys or also its methods? |
Beta Was this translation helpful? Give feedback.
-
Unfortunately there is no easy way for doing this. You can look at how tiptap gets the value of tiptap/packages/core/src/ExtensionManager.ts Lines 248 to 266 in 7a04a32 A list of resolved extension can be found here: |
Beta Was this translation helpful? Give feedback.
Unfortunately there is no easy way for doing this. You can look at how tiptap gets the value of
addKeyboardShortcuts
here:tiptap/packages/core/src/ExtensionManager.ts
Lines 248 to 266 in 7a04a32
A list of r…