payload-plugin-lexical icon indicating copy to clipboard operation
payload-plugin-lexical copied to clipboard

Renaming a pasted link also modfies the link itself

Open johannesschaffer opened this issue 2 years ago • 2 comments

Reproduce:

  1. Copy pasting e.g. https://www.google.com/
  2. Rename the name of the link to e.g. "Google"

Problems:

  • If I rename it to e.g. "Google" -> Doesn't even recognize as link anymore (not blue), since it changed the link as well
  • If I ranem it to e.g. "https://www.google.com/ Google" it keeps the link and writes the word "Google" as regular word, not "inside" the link

The same thing DOES WORK with links created via the button (not pasted).

I'm using v0.6.2

johannesschaffer avatar Apr 24 '23 13:04 johannesschaffer

I think this is related to this comment: https://github.com/facebook/lexical/pull/4203#issuecomment-1484999459

Will work on fixing that!

AlessioGr avatar Apr 30 '23 11:04 AlessioGr

Great to hear 👍. And thanks for upstreaming all these improvements to Lexical itself;) Will benefit everyone...

johannesschaffer avatar Apr 30 '23 12:04 johannesschaffer