Open userofit123 opened 3 years ago
Use the shortcuts
option/parameter to alter the keyboard shortcuts.
This will disable the Ctrl-H
and the Shift-Ctrl-H
shortcuts:
const easyMDE = new EasyMDE({
shortcuts: {
"toggleHeadingSmaller" : null // unbind Ctrl-H
"toggleHeadingBigger" : null // unbind Shift-Ctrl-H
}
});
My post titles are not part of the post content textarea, there is a dedicated input for them. The titles are the posts h1, so I only allowed h2 and h3 to be added through the buttons toolbar, but pressing ctrl+h allows people to add h1s.
Is there a way to cancel only the h1 from that shortcut, or to redefine that shortcut to set only h2 and h3 by reconfiguring it?