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

Clicking enter multiple times creates a new block #1049

Closed
paaljoachim opened this issue Jun 7, 2017 · 4 comments
Closed

Clicking enter multiple times creates a new block #1049

paaljoachim opened this issue Jun 7, 2017 · 4 comments
Labels
[Type] Question Questions about the design or development of the editor.

Comments

@paaljoachim
Copy link
Contributor

paaljoachim commented Jun 7, 2017

I am testing: https://testgutenberg.wpkonsulterna.se/wp-admin/admin.php?page=gutenberg

The issue:
A text block.
Another block below it.
A user wants more space below the block. He/she might go into and click multiple times just below the text to create some space to the next block.
Suddenly a new block is created. It feels kinda strange that clicking multiple times inside a text block automatically creates a new block. It is better to keep it clean. To add a block one clicks the +Insert button.

The question is then how can we easily add more space between the blocks in the layout?
Should there be a spacer block to where the user can define or drag the top and bottom edges to make more or less space?

@jasmussen
Copy link
Contributor

The current behavior in master is currently that single enter is a paragraph linebreak, double enter creates a new text block. Though per recent discussions, including some in #898, this behavior is possibly going to be adjusted in the near future.

Regardless of how enter works in the Text/Paragraph block, the Freeform block is likely the block you want to use if you want multiple linebreaks like this.

@jasmussen jasmussen added the [Type] Question Questions about the design or development of the editor. label Jun 7, 2017
@paaljoachim
Copy link
Contributor Author

The freeform block looks identical to the text block. I see not clear difference between them.

@jasmussen
Copy link
Contributor

The freeform block is still in a state of flux with many features being added to it. See also #1037 and #1038. But they are subtly different, both visually and mechanically.

Freeform:

screen shot 2017-06-07 at 12 31 01

Text:

screen shot 2017-06-07 at 12 31 13

Mechanically they are also different in that the freeform block accepts multiple linebreaks. In fact right now there's now way to break out of the block, without tabbing and creating a new block below it. This is intended, insofar as the freeform block is to play the role of the "old editor" in block form.

@mtias mtias closed this as completed Jun 22, 2017
@mtias
Copy link
Member

mtias commented Jun 22, 2017

Creating a new block when pressing multiple enters is the designed behaviour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Question Questions about the design or development of the editor.
Projects
None yet
Development

No branches or pull requests

3 participants