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 (
|
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}
|
||||||
|
|||||||
@@ -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}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user