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

Cannot resolve a DOM point from Slate point: {"path":[0,0],"offset":30} #4739

Closed
roshan1894 opened this issue Dec 20, 2021 · 2 comments
Closed
Labels

Comments

@roshan1894
Copy link

Description
This error is thrown when I add a custom link into a slate editor at current cursor position and use tab or space after the inserted
link.

Recording
https://user-images.githubusercontent.com/86764119/146716602-657bf5ce-535a-4bdb-bb36-64c3fbb8d548.mp4

Expectation
We have a script which attaches our custom icon to the outreach email editor and apparently outreach email editor uses slate editor. After clicking upon this icon, it opens our extension application in a new tab[for now]. If user clicks on "INSERT LINK" button, link should be inserted at current cursor position which is happening as expected. But, I am unable to click the link and write any texts further after the insertion. If I use space or tab after the link insertion, this error shows up. You could see this clearly in the attached video.

Environment

  • Slate Version: No idea as this is happening in third party website
  • Operating System: Windows
  • Browser: Chrome
@roshan1894
Copy link
Author

Closing this issue as it is duplicate of #3309

@sonhonglee
Copy link

I fixed it by adding css to span[data-slate-node="text"] {
display: inline-block;
width: 100%;
} and then clicking multiple times no longer has the full page error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants