Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable spellcheck for markdown text area #2669

Merged
merged 3 commits into from
Aug 27, 2024
Merged

Enable spellcheck for markdown text area #2669

merged 3 commits into from
Aug 27, 2024

Conversation

SleeplessOne1917
Copy link
Member

I occasionally misspell words, so it can be annoying when the post/comment text areas for Lemmy don't catch that. This PR adds spellchecking functionality.

I also bumped the dependencies since 0.19.6 is going to release relatively soon.

@@ -223,6 +223,7 @@ export class MarkdownTextArea extends Component<
this.props.maxLength ?? markdownFieldCharacterLimit
}
placeholder={this.props.placeholder}
spellCheck
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that if the user has spellcheck disabled in their browser settings, this will not override it. In other words, this will only work if the user has spellcheck enabled for their browser.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, that's simple enough.

@@ -223,6 +223,7 @@ export class MarkdownTextArea extends Component<
this.props.maxLength ?? markdownFieldCharacterLimit
}
placeholder={this.props.placeholder}
spellCheck
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, that's simple enough.

@dessalines dessalines merged commit f456610 into main Aug 27, 2024
2 checks passed
@SleeplessOne1917 SleeplessOne1917 deleted the spellcheck branch August 27, 2024 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants