Skip to content

Commit

Permalink
Fallback to "New entry"
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Mar 14, 2024
1 parent 78bf156 commit 29fcb59
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/web/assets/ckeditor/dist/ckeditor5-craftcms.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/web/assets/ckeditor/dist/ckeditor5-craftcms.js.map

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion src/web/assets/ckeditor/src/entries/entriesui.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,11 @@ export default class CraftEntriesUI extends Plugin {

const dropdownView = createDropdown(locale);
dropdownView.buttonView.set({
label: editor.config.get('createButtonLabel'),
label:
editor.config.get('createButtonLabel') ||
Craft.t('app', 'New {type}', {
type: Craft.t('app', 'entry'),
}),
tooltip: true,
withText: true,
//commandValue: null,
Expand Down

0 comments on commit 29fcb59

Please sign in to comment.