configureLinkTooltip is not working when I use milkdown editor more than once in the application #1235
Unanswered
divya-jeevanantham
asked this question in
Q&A
Replies: 1 comment
-
This is a bug and I'll fix the issue in next version soon. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are encountering an issue when we use the milkdown editor in multiple places within our application. Initially, when we configure the link tooltip, everything works fine. However, when we navigate to another page where we also use the milkdown editor, we receive an error message in console when trying to configure the link tooltip.
@milkdown_components_link-tooltip.js?v=c91424f0:4218 Uncaught (in promise) DOMException: Failed to execute 'define' on 'CustomElementRegistry': the name "milkdown-link-preview" has already been used with this registry
at configureLinkPreviewTooltip (https://githubablxxt-e33r--5173--26ebe8bf.local-credentialless.webcontainer.io/node_modules/.vite/deps/@milkdown_components_link-tooltip.js?v=c91424f0:4218:18)
at configureLinkTooltip (https://githubablxxt-e33r--5173--26ebe8bf.local-credentialless.webcontainer.io/node_modules/.vite/deps/@milkdown_components_link-tooltip.js?v=c91424f0:4515:3)
at https://githubablxxt-e33r--5173--26ebe8bf.local-credentialless.webcontainer.io/src/main.ts?t=1706865477299:47:5
at https://githubablxxt-e33r--5173--26ebe8bf.local-credentialless.webcontainer.io/node_modules/.vite/deps/chunk-K6BNO2KH.js?v=ad38d6ef:22289:51
at Array.map ()
at https://githubablxxt-e33r--5173--26ebe8bf.local-credentialless.webcontainer.io/node_modules/.vite/deps/chunk-K6BNO2KH.js?v=ad38d6ef:22289:39
at https://githubablxxt-e33r--5173--26ebe8bf.local-credentialless.webcontainer.io/node_modules/.vite/deps/chunk-K6BNO2KH.js?v=ad38d6ef:22011:57
at https://githubablxxt-e33r--5173--26ebe8bf.local-credentialless.webcontainer.io/node_modules/.vite/deps/chunk-K6BNO2KH.js?v=ad38d6ef:22319:24
at Array.map ()
at Ce2. (https://githubablxxt-e33r--5173--26ebe8bf.local-credentialless.webcontainer.io/node_modules/.vite/deps/chunk-K6BNO2KH.js?v=ad38d6ef:22315:48)
kindly refer the stackblitz for the same.
https://stackblitz.com/edit/github-ablxxt
@Saul-Mirone Could you please help me with how to resove this
Beta Was this translation helpful? Give feedback.
All reactions