slate
slate copied to clipboard
Editor crashes on hitting enter key
Description Hi team I am using below version for react slate edittor "slate": "^0.76.1", "slate-history": "^0.66.0", "slate-hyperscript": "^0.67.0", "slate-react": "^0.76.1", In updated chrome(100.0.4896.88) or firefox(99.0.1) both browsers are 64bit on mac os catalina, when I hit enter on editor I am getting below error
After that i have updated to below version "slate": "^0.77.2", "slate-history": "^0.66.0", "slate-hyperscript": "^0.77.2", "slate-react": "^0.77.2"
After that, I am not getting the old issue, but the initial value is not loading when the page reloads
Hard to say what exactly is going on here. I suspect it's something specific to your implementation, although it could very well be a bug in slate as well. Can you share a code sandbox or something along those lines where we can reproduce the issue?
HI team , we have the below sandbox env
https://dev.sportsblog.com/
You can sign up , go with the flow and select free plan when asks and create a new blog once you reach the dashboard page click on new post , in which you will find the editor
adding a video of the issue [](url
https://user-images.githubusercontent.com/99753285/165723881-d9f25ac7-5c21-4fd2-bd42-4c65c6c23ee1.mov
)
We also have another issue, when we try to edit the article, the content is not loading in editor.
https://user-images.githubusercontent.com/99753285/165731018-c0223631-a75d-4169-9751-a00e2a917fcb.mov
Hi Team
any response for above issue ?
These problems don't exist in Slate or in my app using Slate, so without a reproducible sandbox or test, it's impossible to help as it's likely something unexpected in your implementation.
you can reproduce issue here https://dev.sportsblog.com/
You can sign up , go with the flow and select free plan when asks and create a new blog once you reach the dashboard page click on new post , in which you will find the editor
It worked fine till few days back, when users update their browser versions they face this issue.
The stack crawl shows minimized code. We are developers, not hackers - create a simple reproducible case where others can see your source and maybe someone can help.
It worked fine till few days back, when users update their browser versions they face this issue.
Based on this I would have guessed that you are missing https://github.com/ianstormtaylor/slate/commit/3b3b0e32df4df9fb4cf1d82c0c09b7242c708169 but your version number should support that fix. Again, asking us to debug a production app isn't going to happen, and is no more useful than me giving you access to our app to show things working fine. :)
Since they can't be answered without more info and it doesn't seem to be forthcoming at this point, I'm closing this.