Bug: $generateNodesFromDOM does not generates AutoLinkNode
- Dominant language
- TypeScript
- Stars
- 23.9k
- Forks
- 2.2k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 55
Description
Having an html string which contains an anchor tag ``, `$generateNodesFromDOM` seems to not convert it right, and returns it as a `TextNode` rather than a `AutoLinkNode`.
For example, having this editor state which consists of `[TextNode, AutoLinkNode, TextNode]`, I generate an HTML string from it which returns is correctly with the `` tag in it. Then I do the reverse: generating Lexical nodes from the HTML which returns the link as a `TextNode`:

Link to code example:
https://codesandbox.io/s/generatenodesfromdom-autolink-lnszmd?file=/src/plugins/TestGenerateNodesFromDOMPlugin.js
### Lexical version
`0.9.1` in codesandbox, but reproduces on `0.11.2` as well
Contributor guide
Assessment
This issue has not been assessed yet.