+
-
+ {!readOnly && (
+
+ )}
);
});
diff --git a/webapp/platform/shared/src/types/global/editor.ts b/webapp/platform/shared/src/types/global/editor.ts
index 34ea111dbef..fae11ef2a97 100644
--- a/webapp/platform/shared/src/types/global/editor.ts
+++ b/webapp/platform/shared/src/types/global/editor.ts
@@ -29,6 +29,7 @@ export type WysiwygEditorProps = {
channelId: string;
rootId?: string;
disabled?: boolean;
+ readOnly?: boolean;
id?: string;
useCtrlSend?: boolean;
sendCodeBlockOnCtrlEnter?: boolean;