facebook / facebook/lexical

Use AutoLinkPlugin with TOGGLE_LINK_COMMAND

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

Description

Hello,

I'm using the Link Plugin and AutoLink Plugin in my project, along with a custom plugin. In this custom plugin, I'm calling the `editor.dispatchCommand(TOGGLE_LINK_COMMAND, null)` command to remove a link.
However, I'm facing an issue where after removing the link, the AutoLink Plugin's behavior, implemented through registerNodeTransform, is causing the link to be re-added.

Do you have any suggestions on how to solve this problem?

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.