mirror of
https://github.com/dream-num/univer.git
synced 2026-09-19 02:18:42 +08:00
fix(docs-ui): insert images directly from the ribbon (#7509)
This commit is contained in:
@@ -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]: {
|
||||
|
||||
Reference in New Issue
Block a user