editor-js / editor-js/header

How to implement keyboard shortcuts for changing heading levels

Open
#129 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
115
Forks
123
PR merge metrics
No merged PRs in 30d

Description

I would like to allow users to change the heading level directly via keyboard shortcuts (e.g. `CMD+ALT+1` for H1, `CMD+ALT+2` for H2, etc.).

EditorJS has a shortcut option in the tools configuration, but it only allows defining a shortcut to insert a header block, not to change its level once it is already inserted.

Is there an official or recommended way to bind keyboard shortcuts to heading level changes in EditorJS?

If this is not currently supported, would it be something that could be added to the plugin?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.