-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Description
Upon trying to drag and drop the text, the following error appears in the console:
Error: Cannot resolve a Slate point from DOM point: [object HTMLDivElement],0
Additionally, the text is not moved to the new location.
This issue can be reproduced on the official Slate website:: https://www.slatejs.org/examples/shadow-dom
Steps to reproduce:
- Render a Slate editor inside a Shadow DOM.
- Select a portion of text.
- Attempt to drag and drop the selected text into a different paragraph.
Environment:
System: Ubuntu
Browser: Chrome, Version 125.0.6422.141 (Official Build) (64-bit)
Context:
In my case, I need to use a Shadow DOM because I am developing a Chrome extension that will be injected into various websites. The Shadow DOM allows me to create an isolated environment where the editor is unaffected by the surrounding page's styles or scripts, ensuring it functions independently. This is crucial for maintaining consistent and predictable behavior across different host pages.
Thank you for your help and suggestions!
