Skip to content

Conversation

@i-just
Copy link
Contributor

@i-just i-just commented May 13, 2025

Description

This PR adds expandEntryButtons property to the CKEditor field, which allows you to control whether you want to switch to the “new” entry type buttons.

If turned off (default), the “old” button (single “+” button that triggers a dropdown with all the entry types selected for the field) is shown. In this case, you can also customise the label of the button (like you could before).
If turned on, the entry types that have icons have separate buttons (with colour, if selected for the entry type), with the rest going into the “+” dropdown (as per #404).

I also switched the translation category for "New <entryTypeLabel>" from app to ckeditor so there’s greater control over how the button tooltips are translated.

Related issues

#406
#404

@i-just i-just requested a review from brandonkelly as a code owner May 13, 2025 15:43
i-just and others added 4 commits May 19, 2025 09:10
# Conflicts:
#	src/web/assets/ckeditor/dist/ckeditor5-craftcms.js
#	src/web/assets/ckeditor/dist/ckeditor5-craftcms.js.map
@brandonkelly brandonkelly force-pushed the feature/expand-entry-buttons-setting branch from fd87837 to 4461f95 Compare May 22, 2025 23:33
@brandonkelly brandonkelly merged commit 0e0f5a0 into 4.x May 23, 2025
4 checks passed
@brandonkelly brandonkelly deleted the feature/expand-entry-buttons-setting branch May 23, 2025 15:52
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.

3 participants