slate icon indicating copy to clipboard operation
slate copied to clipboard

Editor crashes on hitting enter key

Open udhay-appminds opened this issue 2 years ago • 10 comments

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

Screenshot 2022-04-20 at 4 33 54 PM

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

udhay-appminds avatar Apr 20 '22 11:04 udhay-appminds

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?

BitPhinix avatar Apr 20 '22 17:04 BitPhinix

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

udhay-appminds avatar Apr 28 '22 02:04 udhay-appminds

adding a video of the issue [](url

https://user-images.githubusercontent.com/99753285/165723881-d9f25ac7-5c21-4fd2-bd42-4c65c6c23ee1.mov

)

udhay-appminds avatar Apr 28 '22 09:04 udhay-appminds

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

udhay-appminds avatar Apr 28 '22 10:04 udhay-appminds

Hi Team

any response for above issue ?

srinivas-appminds avatar May 04 '22 12:05 srinivas-appminds

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.

dylans avatar May 04 '22 13:05 dylans

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

srinivas-appminds avatar May 04 '22 14:05 srinivas-appminds

It worked fine till few days back, when users update their browser versions they face this issue.

srinivas-appminds avatar May 04 '22 15:05 srinivas-appminds

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.

SmilinBrian avatar May 04 '22 16:05 SmilinBrian

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. :)

dylans avatar May 04 '22 18:05 dylans

Since they can't be answered without more info and it doesn't seem to be forthcoming at this point, I'm closing this.

thesunny avatar Mar 01 '23 07:03 thesunny