-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Have multiple empty paragraph breaks -> convert to spacer block #17366
Comments
When would that conversion happen? Cc @melchoyce. |
I think the third time you press enter, we should turn those paragraph breaks into one spacer. |
I think we might need design to look this over and give it a thumbs up so we can add the need dev label. We might also need a larger discussion around this issue. I have added a comment to the core editor agenda. |
I love this idea and saw something like this with @phpbits' plugin I think. Should we communicate to the user when this happens? Any sort of notification like a snackbar? |
A snackbar is a good idea, maybe paired with an "undo" link? |
These are good ideas! |
I think we are about ready to get a PR going. |
#27995 was just merged, which makes sure a linebreak in the editor shows up as a linebreak on the frontend. Does that mitigate or even fix this issue? |
I am not sure Joen. Let's test out the merged PR in the next version of Gutenberg and get a feel for it. |
Closing this issue, as it has mostly been taken care of. |
Is your feature request related to a problem? Please describe.
I find it cumbersome to have to add so many spacer blocks to gain some margin/padding in the layout. Having another quicker way to add the spacer block would help.
Describe the solution you'd like
@melchoyce mentioned this:
"One thing that could be cool re: spacer block, it automatically converting multiple paragraph breaks (say, three or more) into a spacer block."
#11824 (comment)
I found it a very interesting idea! As one could easily press enter multiple times (three or more times) and have a spacer block inserted. A lot quicker then having to manually add the spacer block.
The text was updated successfully, but these errors were encountered: