From 6a74fdf6cf872313673155f15aff961dda4ba977 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Thu, 12 Oct 2023 23:33:57 -0400 Subject: [PATCH] fix: Allow browser translation of documents in read-only, closes #5998 --- app/editor/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/editor/index.tsx b/app/editor/index.tsx index 9b803369f..aaf7a3a22 100644 --- a/app/editor/index.tsx +++ b/app/editor/index.tsx @@ -469,6 +469,9 @@ export class Editor extends React.PureComponent< blur: this.handleEditorBlur, focus: this.handleEditorFocus, }, + attributes: { + translate: this.props.readOnly ? "yes" : "no", + }, state: this.createState(this.props.value), editable: () => !this.props.readOnly, nodeViews: this.nodeViews,