fix: Code toolbar in read-only

This commit is contained in:
Tom Moor
2023-07-18 19:39:23 -04:00
parent 1e78079ade
commit eae6204d55
2 changed files with 5 additions and 1 deletions

View File

@@ -215,7 +215,7 @@ export default function SelectionToolbar(props: Props) {
let items: MenuItem[] = [];
if (isCodeSelection) {
items = getCodeMenuItems(state, dictionary);
items = getCodeMenuItems(state, readOnly, dictionary);
} else if (isTableSelection) {
items = getTableMenuItems(dictionary);
} else if (colIndex !== undefined) {