Closed qaws5503 closed 3 weeks ago
Hi!
I think you're missing to actually use '@lexical/react/LexicalLinkPlugin'
in your example.
Working example: https://stackblitz.com/edit/facebook-lexical-m1f8jq
@StyleT It works!! Thank you for your help. This library is very awesome but due to the lack of documentation sometimes will encounter some missing import problem.
This is not working
editor.dispatchCommand(TOGGLE_LINK_COMMAND, {url:"https://google.com"})
.Lexical version:
Steps To Reproduce
Link to code example:
StackBlitz here. https://stackblitz.com/edit/facebook-lexical-dkeq39?file=src%2FApp.tsx,src%2Fplugins%2FToolbarPlugin.tsx
The current behavior
Not toggle link.
The expected behavior
Toggle link.