Skip to content

Bug Fix: Enable Selective Removal Within Linked Text #7943

@normtronics

Description

@normtronics

When attempting to remove part of a linked word, lexical will remove the link from the entire text rather than just the selected portion. This forces the user to reapply the link to the intended text.

Lexical version: 0.32.1

Steps To Reproduce

  1. Write some text and select it.
  2. Apply a link to the text.
  3. Select a portion of that.
  4. Try to unlink a portion of the text.
  5. The entire link text will become unlinked and not the selected portion.

The current behavior

When selecting a portion of the text to unlink, it unlinks the entire text.

The expected behavior

If I'm selecting a portion of the linked text, like some extra space for example, I expect only that portion of the text to be unlinked.

Impact of fix

This happens anytime I want to unlink text

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