Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

heading shortcuts #116

Merged
merged 4 commits into from
Aug 12, 2023
Merged

heading shortcuts #116

merged 4 commits into from
Aug 12, 2023

Conversation

i-just
Copy link
Contributor

@i-just i-just commented Jul 11, 2023

Description

Adds shortcuts to quickly change a line of text into a heading (or back to a paragraph).

Alt+Ctrl+[1-6] / Opt+Cmd+[1-6] for headings 1 to 6
Alt+Ctrl+p / Opt+Cmd+p for paragraph

It respects which heading levels you’ve allowed in your CKEditor configuration, so if H4 is not allowed, Alt+Ctrl+4 / Opt+Cmd+4 won’t do anything.

Related issues

#106

# Conflicts:
#	src/web/assets/ckeditor/dist/ckeditor5-craftcms.js
#	src/web/assets/ckeditor/dist/ckeditor5-craftcms.js.map
@brandonkelly
Copy link
Member

Awesome!!

@brandonkelly brandonkelly merged commit 300f792 into main Aug 12, 2023
3 checks passed
@brandonkelly brandonkelly deleted the feature/106-heading-shortcuts branch August 12, 2023 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants