Need help with edit link popover 😊 #635
Unanswered
antonykamp
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey everyone 👋
I have an issue regarding building my own edit link dialog. I'd really appreciate your help here.
This is a minimal version of the popover (implemented with radix-ui primtives).
Code Snippets
markdown-editor.tsx
LinkButton.tsx
InsertLinkPopover.tsx
Issue
My current issue is the following. When you
The result is that we shortly see the edit form and then the preview again. If you click in the near of the link in the preview window and then on the edit button it works. I was able to prove, that it shortly changes the state from "preview" to "edit", but instantly back again. The same thing happen when you want to edit an existing link.
This video contains show the issue with a styled version of the editor:
Screen.Recording.2024-11-19.at.07.39.48.mov
I would greatly appreciate your help and any ideas 💚 The architecture of the MDX editor is very interesting and fascinating. That's why I want to understand the full issue behind my mistake 😇 If you need any additional information, please feel free to reach out!
Beta Was this translation helpful? Give feedback.
All reactions