Skip to content

Bug: Link pasting using link plugin does not work across comment blocks #7191

Open
@RobHannay

Description

@RobHannay

Lexical version:

Steps To Reproduce

  1. Add a comment
  2. Highlight text that includes comment node
  3. Paste a link from clipboard

Link to code example:

Reproducable in the playground

Screen.Recording.2025-02-17.at.15.40.43.mov

The current behavior

Link replaces the text

The expected behavior

The highlighted text should be linked

Impact of fix

Unknown but consistently reproducable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    hyperlinksRelates to Lexical Linksmarks@lexical/mark, comments, annotationsplayground

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions