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 ( return (
<Container align="center" rtl={document.dir === "rtl"} {...rest} dir="ltr"> <Container
align="center"
rtl={document.dir === "rtl"}
{...rest}
dir="ltr"
lang=""
>
{to ? ( {to ? (
<Link to={to} replace={replace}> <Link to={to} replace={replace}>
{content} {content}

View File

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

View File

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