fix: Allow browser translation of documents in read-only, closes #5998
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user