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

Re-enable spellchecker in translation editor #2884

Merged
merged 3 commits into from
Jun 21, 2023

Conversation

mathjazz
Copy link
Collaborator

@mathjazz mathjazz commented Jun 20, 2023

Fixes #2881.

(Currently deployed to stage.)

@mathjazz mathjazz requested a review from eemeli June 20, 2023 20:04
@@ -66,6 +66,7 @@ export const EditField = memo(
setResultFromInput(index, update.state.doc.toString());
}
}),
EditorView.contentAttributes.of({ spellcheck: 'true' }),
Copy link
Member

Choose a reason for hiding this comment

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

This should be set in getExtensions() rather than here, as it's not dependent on any of the EditField state. But presuming that you've tested this to work as intended, this should be the right fix.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I thought this would also trigger the spellcheck in the read-only mode. But it doesn't, so let's move it.

@mathjazz mathjazz merged commit efa6859 into mozilla:master Jun 21, 2023
@mathjazz mathjazz deleted the enable-spellchecker branch June 21, 2023 07:35
@mathjazz mathjazz mentioned this pull request Jun 21, 2023
mathjazz added a commit to mathjazz/pontoon that referenced this pull request Jun 22, 2023
mathjazz added a commit that referenced this pull request Jun 22, 2023
* Revert "Re-enable spellchecker in translation editor (#2884)"

This reverts commit efa6859.

* Revert "Add syntax highlighting for placeholders and tags (#2879)"

This reverts commit 9220827.

* Revert "Replace editor `<textarea>` with CodeMirror v6 (#2866)"

This reverts commit 9a1ee55.
eemeli pushed a commit to eemeli/pontoon that referenced this pull request Jul 25, 2023
eemeli added a commit that referenced this pull request Jul 26, 2023
…itor results have updated (#2917)

* Replace editor `<textarea>` with CodeMirror v6

* refactor: Add EditFieldHandle and EditorResult as interfaces for the editor value

* Add syntax highlighting for placeholders and tags

* Re-enable spellchecker in translation editor (#2884)

* Delay setting failed checks until editor results have updated

* Update tests to account for setTimeout

* Scroll editor settings menu into view on display

---------

Co-authored-by: Matjaž Horvat <[email protected]>
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.

Spellchecking not working anymore
2 participants