Skip to content

Browser spellcheck correction removes adjacent text when URL plugin or 'enter=BR' is enabled #434

@burtonrhodes

Description

@burtonrhodes

Title
Browser spellcheck correction removes adjacent text when URL plugin or "enter=BR" is enabled


Description
When the URL plugin is included or "enter=BR" is enabled, using the browser’s native spellcheck context menu removes unrelated text that follows the corrected word.

This does not appear to happen when the URL plugin is excluded or "enter=P".

Reproduction Steps
The sandbox below demonstrates both scenarios:

Demo 1

  1. Open the demo sandbox:
    https://codesandbox.io/p/sandbox/358nlp
  2. In the editor, type a misspelled word such as:
    cauzing
  3. Immediately after it, type another word, for example:
    test
  4. Right-click cauzing
  5. Use the browser context menu to correct the spelling

Demo 2

  1. Open the demo sandbox:
    https://codesandbox.io/p/sandbox/358nlp
  2. In the editor, right click on 'followin'
  3. Right-click following
  4. Use the browser context menu to correct the spelling

Video Demo
https://github.com/user-attachments/assets/ebda08fe-593d-4ba8-9e81-171f7eafe2c6


Expected Behavior

Only the misspelled word should be corrected.
The word typed after it should remain intact.


Actual Behavior

The word typed after the misspelled word is deleted when the correction is applied.


Environment

  • React integration (also without React)
  • URL plugin enabled or enter=BR
  • Reproduced in CodeSandbox (link above)
  • Tested Browsers: Chrome Version 145.0.7632.77, Edge Version 145.0.3800.65

Please let me know if additional instrumentation or logging would help isolate the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions