Skip to content

How to implement keyboard shortcuts for changing heading levels #129

@ldeaudit1

Description

@ldeaudit1

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions