From c68d55f49bf856d036b3bedaa67834ccbd0b1aa7 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Thu, 17 Aug 2023 23:30:42 +0200 Subject: [PATCH] fix: Inopperable image toolbar appears in read-only mode --- app/editor/components/SelectionToolbar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/editor/components/SelectionToolbar.tsx b/app/editor/components/SelectionToolbar.tsx index 90c77a182..ac9e2c001 100644 --- a/app/editor/components/SelectionToolbar.tsx +++ b/app/editor/components/SelectionToolbar.tsx @@ -231,7 +231,7 @@ export default function SelectionToolbar(props: Props) { } else if (rowIndex !== undefined) { items = getTableRowMenuItems(state, rowIndex, dictionary); } else if (isImageSelection) { - items = getImageMenuItems(state, dictionary); + items = readOnly ? [] : getImageMenuItems(state, dictionary); } else if (isDividerSelection) { items = getDividerMenuItems(state, dictionary); } else if (readOnly) {