diff --git a/packages/toolbar-vue/src/config/index.ts b/packages/toolbar-vue/src/config/index.ts index 076c46c9..4016736d 100644 --- a/packages/toolbar-vue/src/config/index.ts +++ b/packages/toolbar-vue/src/config/index.ts @@ -13,6 +13,7 @@ export const getToolbarDefaultConfig = ( const language = engine.language.get<{ [key: string]: { [key: string]: string }; }>('toolbar'); + const fontSizeInContainer = engine.container.css('font-size'); return [ { type: 'collapse', @@ -414,7 +415,7 @@ export const getToolbarDefaultConfig = ( { key: '40px', content: '40px', hotkey: false }, { key: '48px', content: '48px', hotkey: false }, ].map((item) => - item.key === engine.container.css('font-size') + item.key === fontSizeInContainer ? { ...item, isDefault: true } : item, ),