Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

feat(docs): ff component did not receive command in props (#6666)

Roman Sergeev09e060310456
diff --git a/packages/docs-ui/src/menu/menu.ts b/packages/docs-ui/src/menu/menu.ts
index f52737946c..fe32950a78 100644
--- a/packages/docs-ui/src/menu/menu.ts
+++ b/packages/docs-ui/src/menu/menu.ts
@@ -478,7 +478,12 @@ export function FontFamilySelectorMenuItemFactory(accessor: IAccessor): IMenuSel
id: SetInlineFormatFontFamilyCommand.id,
tooltip: 'toolbar.font',
type: MenuItemType.SELECTOR,
- label: FONT_FAMILY_COMPONENT,
+ label: {
+ name: FONT_FAMILY_COMPONENT,
+ props: {
+ id: SetInlineFormatFontFamilyCommand.id,
+ },
+ },
selections: [{
label: {
name: FONT_FAMILY_ITEM_COMPONENT,