-
Notifications
You must be signed in to change notification settings - Fork 784
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
Pressing backspace at the beginning of the first paragraph resets the block incorrectly #3328
Comments
It is caused by reset node plugin. Enable |
Pressing delete key at the beginning of the first paragraph resets the block incorrectly |
Does it fixed by #3444 ? Could try update? |
The Reset Plugin is buggy as hell. Try deleting all the content from the playground, then add an empty code block, hit backspace. You no longer see the placeholder which is shifted on to the next line and even if you delete it, there's no placeholder and the document is weirdly nested. You can also not use ``` anymore as it keeps resetting. @zbeyens any idea what could be off? We just upgraded from v34 where this issue wasn't present and resetting worked correctly or at least better than in v37. |
It looks like the ResetNodePlugin was accidentally deleted in Playground. v37 should be fine as well. fixing now |
The problem is ResetNodePlugin not import from '/react' fixes by #3522 This is indeed an easy issue to overlook and is often mentioned. We’ll include it in the documentation when we get the chance. |
@felixfeng33 ya I noticed that while upgrading too. I wonder if it'd make sense to use different plugin names because it is indeed incredibly easy to overlook and so hard to troubleshoot when React and non-React plugins share the same name. Thanks for the fixes! |
@zbeyens Maybe we should rename the non-React plugins (or at least the ones that have React alternatives) with a prefix like "Headless" or "Slate"? |
It still incorrectly resets table and list (the non indent one). |
Description
Pressing backspace at the beginning of the first block resets the node (reset node plugin) incorrectly.
It causes
Original value:
After pressing
BACKSPACE
:Reproduction URL
https://github.com/udecode/plate-playground-template
Reproduction steps
Plate version
34.0.4
Slate React version
0.103.0
Screenshots
No response
Logs
Original:
After pressing
BACKSPACE
:Browsers
Chrome, Firefox
Funding
The text was updated successfully, but these errors were encountered: