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

Paragraph with starting 1. (e. g. for dates) not possible #11358

Closed
MatzeKitt opened this issue Nov 1, 2018 · 3 comments · Fixed by #11497
Closed

Paragraph with starting 1. (e. g. for dates) not possible #11358

MatzeKitt opened this issue Nov 1, 2018 · 3 comments · Fixed by #11497
Assignees
Labels
[Block] Paragraph Affects the Paragraph Block [Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended

Comments

@MatzeKitt
Copy link
Contributor

MatzeKitt commented Nov 1, 2018

Describe the bug
I tried to begin a new paragraph with the current date in German format (1. November 2018). What happens is that as soon as you write 1. it will switch the block to a list block with an ordered list and you can’t get it working to be a paragraph with a starting string like 1..

In the screenshot following below I also started by writing 01. November 2018 and tried to remove the leading zero (which is usually only used in programming contexts but not written by humans) but that didn’t work either.

To Reproduce
Steps to reproduce the behavior:

  1. Add a new block.
  2. Write 1. following by a space.

Expected behavior
You should be able to press CTRL + Z or ⌘ + Z to switch back to the paragraph mode while the 1. is still visible as regular text instead of being bound to an ordered list.

Screenshots
date-not-as-list

Desktop (please complete the following information):

  • OS: macOS 10.14
  • Browser: Safari
  • Version: 12.0 (14606.1.36.1.9)

Additional context

  • Gutenberg version 4.1.1
@GlennMartin1
Copy link

Interesting that you bring this up.

Just yesterday I realized I cannot start a paragraph with an asterisk (it creates a bullet point. Turning off the bullet point removes the asterisk.

My recommendation:
Google Docs and Microsoft Word also auto-insert numbering and bullet points, but if you press backspace immediately after it auto-inserts, it reverts to plain text.

@ocean90 ocean90 added [Type] Bug An existing feature does not function as intended [Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable [Block] Paragraph Affects the Paragraph Block labels Nov 1, 2018
@ocean90
Copy link
Member

ocean90 commented Nov 1, 2018

Confirmed in latest master and Chrome. ⌘ + Z is actually working, it reverts the block type but also removes the focus of the block. Once you focus and press a key it transforms the block back to a list.

cc: @iseulde

@ellatrix
Copy link
Member

ellatrix commented Nov 1, 2018

Yes, I'm aware of this issue. I'll think about a fix. Thanks!

@ellatrix ellatrix self-assigned this Nov 1, 2018
@mtias mtias added this to the WordPress 5.0 RC milestone Nov 12, 2018
@mtias mtias added the [Status] In Progress Tracking issues with work in progress label Nov 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Paragraph Affects the Paragraph Block [Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants