fix: Allow browser translation of documents in read-only, closes #5998

This commit is contained in:
Tom Moor
2023-10-12 23:33:57 -04:00
parent a84008085f
commit 6a74fdf6cf

View File

@@ -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,