Skip to content

Very long line editor glitch #1448

Closed
Closed
@FFFFFFFXXXXXXX

Description

@FFFFFFFXXXXXXX

Describe the issue

If I set the content of the editor to a single line containing more than 1_245_526 characters in firefox or more than 1_877_171 characters in chrome the cursor disappears.

Additionally in firefox with enough characters the cursor gets placed in a different position in the text than was clicked.

Reproduce:

  1. Go to https://codemirror.net/try/?example=Minimal%20editor
  2. paste the text from firefox.txt or chrome.txt depending on browser
  3. add a single character => on firefox the whole line is suddenly blank and in chrome the cursor is invisible

Additionally:

  1. Go to https://codemirror.net/try/?example=Minimal%20editor on firefox
  2. paste the text from chrome.txt
  3. go to the start of the line and click somewhere in the line => the cursor doesn't get placed where you clicked

Tested on:

  • Firefox 130.0.1 (64-Bit) for Windows
  • Google Chrome Version 129.0.6668.70 (official build) (64-Bit) for Windows

Browser and platform

No response

Reproduction link

No response

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