facebook / facebook/lexical

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

Open
#7,191 1 comment 0 reactions 0 assignees View on GitHub
hyperlinks marks playground
Dominant language
TypeScript
Stars
23.9k
Forks
2.2k
Avg merge
1d 14h
Merged PRs (30d)
55

Description

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](https://playground.lexical.dev/)

https://github.com/user-attachments/assets/8a76e8bb-367e-473e-ad27-ed5c167a71a1

## The current behavior

Link replaces the text

## The expected behavior

The highlighted text should be linked

## Impact of fix

Unknown but consistently reproducable.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.