fix: Mark editor content as unknown language to aid translation/screen readers
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -96,6 +96,7 @@ function EditableTitle(
|
||||
<Input
|
||||
dir="auto"
|
||||
type="text"
|
||||
lang=""
|
||||
value={value}
|
||||
onClick={stopPropagation}
|
||||
onKeyDown={handleKeyDown}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user