mirror of
https://github.com/codex-team/editor.js
synced 2026-03-18 08:29:52 +01:00
Add fallback for missing toolbox title
This commit is contained in:
parent
5fa2505d0f
commit
968bc3b45f
1 changed files with 1 additions and 1 deletions
|
|
@ -135,7 +135,7 @@ export default class Toolbox extends EventsDispatcher<ToolboxEvent> {
|
|||
items: this.toolsToBeDisplayed.map(tool => {
|
||||
return {
|
||||
icon: tool.toolbox.icon,
|
||||
label: I18n.t(I18nInternalNS.toolNames, tool.toolbox.title),
|
||||
label: I18n.t(I18nInternalNS.toolNames, tool.toolbox.title || _.capitalize(tool.name)),
|
||||
name: tool.name,
|
||||
onClick: (item): void => {
|
||||
this.toolButtonActivated(tool.name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue