-
Notifications
You must be signed in to change notification settings - Fork 528
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
Conversation
@@ -66,6 +66,7 @@ export const EditField = memo( | |||
setResultFromInput(index, update.state.doc.toString()); | |||
} | |||
}), | |||
EditorView.contentAttributes.of({ spellcheck: 'true' }), |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
This reverts commit efa6859.
…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]>
Fixes #2881.
(Currently deployed to stage.)