Skip to content

[BUG] - Cursor Resets to End of Paragraph After Pasting Text in Middle of Paragraph #2593

@josefkohtimu

Description

@josefkohtimu

Package Version
Which package and version are you using? latest main

User Info
Research super_editor for prove of concepts

To Reproduce

Steps to reproduce the behavior:

  1. Open Super Editor and type a paragraph of text (e.g., "This is a sample paragraph to test pasting.").
  2. Place the cursor in the middle of the paragraph (e.g., between "sample" and "paragraph").
  3. Paste any text (e.g., "inserted") using Ctrl+V or the context menu.
  4. Observe the cursor position after pasting.

Actual behavior
Cursor reset to the end of paragraph

Expected behavior
Cursor should remain at the pasted location.

Platform
Ubuntu 24.04.2 LTS 6.11.0-17-generic, locale en_US.UTF-8)
using Flutter Web with Chrome 133.0.6943.53

Flutter version
Flutter Channel stable, 3.29.0
Dart SDK version: 3.7.0 (stable) (Wed Feb 5 04:53:58 2025 -0800) on "linux_x64"

Additional context
This can be recreated by running the built in example from the repo super_editor/super_editor/example

Metadata

Metadata

Assignees

No one assigned

    Labels

    type_bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions