Skip to content

fix(NB-2589): configure TinyMCE for en-GB spell check in Edge#6

Open
cannycookie wants to merge 1 commit into
4.xfrom
feature/NB-2589-spell-check-edge-fix
Open

fix(NB-2589): configure TinyMCE for en-GB spell check in Edge#6
cannycookie wants to merge 1 commit into
4.xfrom
feature/NB-2589-spell-check-edge-fix

Conversation

@cannycookie
Copy link
Copy Markdown
Collaborator

Summary

  • Enable browser spell check in TinyMCE configuration
  • Configure content_langs to prioritize British English (en-GB)
  • Set lang="en-GB" and spellcheck="true" attributes on editor body element
  • This fixes spell check not working in Edge and ensures GB spelling is used

Root Cause

Browser spell check was not enabled in TinyMCE configuration. Edge requires explicit browser_spellcheck: true and proper lang attributes on the contenteditable element.

Changes Made

  1. Added browser_spellcheck: true to TinyMCE configuration
  2. Added content_langs array with en-GB as primary, en-US as fallback
  3. Set lang="en-GB" and spellcheck="true" on editor body via init event handler

Testing

Manual testing required:

  • Test spell check works in Chrome with GB spelling
  • Test spell check works in Edge
  • Verify misspelled words are underlined in both browsers
  • Verify US spelling words like "color" are flagged (GB prefers "colour")

YouTrack

Fixes NB-2589

Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com

- Enable browser_spellcheck in TinyMCE configuration
- Set content_langs to prioritize British English (en-GB)
- Set lang="en-GB" and spellcheck="true" on editor body via init event
- This ensures browser spell check works in Edge and uses GB spelling

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
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.

1 participant