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

WYSIWYG editor textarea not recognized by LanguageTool #18639

Closed
mwip opened this issue Feb 6, 2022 · 2 comments
Closed

WYSIWYG editor textarea not recognized by LanguageTool #18639

mwip opened this issue Feb 6, 2022 · 2 comments

Comments

@mwip
Copy link

mwip commented Feb 6, 2022

I am using LanguageTool's browser extension to check my language, spelling and grammar. It's an awesome tool that helps iron out some mistakes.

In Gitea's WYSIWYG editors, for example when writing an issue, I noticed that LanguageTool does not recognize the textarea.
image

As soon as I revert to the simple textarea, the textarea is recognized, though:
image

Initially I thought this might be due to the extended Markdown WYSIWYG functionality of the advanced editor. However, I checked both GitHub
image

and Stack Overflow:
image

My guess is that the LanguageTool extensions misread some HTML signature. I checked both the Firefox and Chromium extensions. They behave the same.

Unfortunately, I am not versed in web development, so I don't quite know what to look for. If someone can point me in the right direction, I can add more details.

@silverwind
Copy link
Member

This is because CodeMirror does not represent as something many browser addons can recognize. I think it can only be fixed by #10729.

@wxiaoguang
Copy link
Contributor

wxiaoguang commented Jun 29, 2022

It might be fixed by #19776 , the native editable content might work for language tools.

This feature has been deployed on try.gitea.io, feel free to test it and report bugs. Feel free to reopen if there is still a problem.

@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants