Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: AutoFocusPlugin does not work with markdown. #5709

Open
rmosias2 opened this issue Mar 13, 2024 · 0 comments
Open

Bug: AutoFocusPlugin does not work with markdown. #5709

rmosias2 opened this issue Mar 13, 2024 · 0 comments

Comments

@rmosias2
Copy link

rmosias2 commented Mar 13, 2024

AutoFocusPlugin seems to only work with Plain Text; when added with markdown, it ends up getting lost. This may happen because plain text is added with just one

tag, whereas markdown text involves several wrapped HTML tags.

Lexical version: 0.13.1

Steps To Reproduce

  1. Create Text with markdown such #
  2. Add <AutoFocusPlugin defaultSelection="rootStart" />

Link to code example:
https://codesandbox.io/p/live/94dfdc00-94da-4c25-9d5a-9bad7627698c

The current behavior

Screenshot 2024-03-13 at 18 16 13

The expected behavior

Screenshot 2024-03-13 at 18 20 31

@rmosias2 rmosias2 changed the title Bug: `<AutoFocusPlugin> does not work with markdown. Bug: AutoFocusPlugin does not work with markdown. Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant