fix: Mark editor content as unknown language to aid translation/screen readers

This commit is contained in:
Tom Moor
2024-04-12 07:53:45 -04:00
parent 5974e5635a
commit 65bbf0c455
3 changed files with 9 additions and 1 deletions

View File

@@ -171,7 +171,13 @@ const DocumentMeta: React.FC<Props> = ({
};
return (
<Container align="center" rtl={document.dir === "rtl"} {...rest} dir="ltr">
<Container
align="center"
rtl={document.dir === "rtl"}
{...rest}
dir="ltr"
lang=""
>
{to ? (
<Link to={to} replace={replace}>
{content}

View File

@@ -96,6 +96,7 @@ function EditableTitle(
<Input
dir="auto"
type="text"
lang=""
value={value}
onClick={stopPropagation}
onKeyDown={handleKeyDown}

View File

@@ -755,6 +755,7 @@ export class Editor extends React.PureComponent<
focusedCommentId={this.props.focusedCommentId}
editorStyle={this.props.editorStyle}
ref={this.elementRef}
lang=""
/>
{this.view && (
<SelectionToolbar