How to implement keyboard shortcuts for changing heading levels
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- typescript
- Domain
- frontend
Research direction
Start by reviewing Editor.js's tool shortcut configuration and the Header Tool's existing heading-level behavior. Confirm whether shortcuts can target an already inserted header block; done means an agreed, supported approach for CMD+ALT+1, CMD+ALT+2, and the other heading levels.
Written by the indexing model from the issue text.
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?
- Dominant language
- TypeScript
- Stars
- 115
- Forks
- 123
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from editor-js/header
-
Store Open
Difficulty 5/5 Over a week Newbie friendliness 10/100
-
Maker Open
Difficulty 5/5 Over a week Newbie friendliness 1/100
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
-
good first task
Difficulty 3/5 1-2 days Newbie friendliness 35/100
All issues in editor-js/header
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
danielmiessler/LifeOS#2218 ·