diff --git a/packages/editor/src/components/toolbar/toolbarConfigurationBuilder.tsx b/packages/editor/src/components/toolbar/toolbarConfigurationBuilder.tsx index 51273536..82b61bab 100644 --- a/packages/editor/src/components/toolbar/toolbarConfigurationBuilder.tsx +++ b/packages/editor/src/components/toolbar/toolbarConfigurationBuilder.tsx @@ -49,6 +49,8 @@ import IconPicker from '../action-widget/pane/icon-picker'; import FontFamilySelector from '../action-widget/button/font-family-selector'; import Capability from '../../classes/action/capability'; +export type ToolbarActionType = 'export' | 'publish' | 'history' | 'print' | 'share' | 'info'; + /** * * @param designer designer to aply changes @@ -305,11 +307,14 @@ export function buildZoomToolbarConfiguration( return [ { - icon: , - tooltip: $msg('CENTER_POSITION'), - onClick: () => { - designer.zoomToFit(); - }, + icon: , + tooltip: $msg('KEYBOARD_SHOTCUTS'), + visible: !capability.isHidden('keyboard-shortcuts'), + options: [ + { + render: () => , + }, + ], }, { // zoom value candidate, neds to fixit @@ -336,14 +341,11 @@ export function buildZoomToolbarConfiguration( }, }, { - icon: , - tooltip: $msg('KEYBOARD_SHOTCUTS'), - visible: !capability.isHidden('keyboard-shortcuts'), - options: [ - { - render: () => , - }, - ], + icon: , + tooltip: $msg('CENTER_POSITION'), + onClick: () => { + designer.zoomToFit(); + }, }, ]; }