fix(docs-ui): insert images directly from the ribbon (#7509)

This commit is contained in:
Univer
2026-08-14 16:33:27 +08:00
committed by GitHub
parent 4f74db67a8
commit 458d2e9d0c
2 changed files with 2 additions and 5 deletions
@@ -64,7 +64,8 @@ const getDisableWhenSelectionInTableObservable = (accessor: IAccessor) => {
export function ImageMenuFactory(accessor: IAccessor): IMenuItem<LocaleKey> {
return {
id: DOCS_IMAGE_MENU_ID,
type: MenuItemType.SUBITEMS,
commandId: IMAGE_MENU_UPLOAD_FLOAT_ID,
type: MenuItemType.BUTTON,
icon: 'AddImageIcon',
tooltip: 'docs-drawing-ui.title',
disabled$: getDisableWhenSelectionInTableObservable(accessor),
@@ -41,10 +41,6 @@ export const menuSchema: MenuSchemaType = {
[DOCS_IMAGE_MENU_ID]: {
order: 0,
menuItemFactory: ImageMenuFactory,
[IMAGE_MENU_UPLOAD_FLOAT_ID]: {
order: 0,
menuItemFactory: UploadFloatImageMenuFactory,
},
},
},
[ContextMenuPosition.PARAGRAPH]: {