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

Unable to prevent paragraph block auto transforms #17289

Closed
pattonwebz opened this issue Aug 31, 2019 · 5 comments
Closed

Unable to prevent paragraph block auto transforms #17289

pattonwebz opened this issue Aug 31, 2019 · 5 comments
Labels
[Feature] Inserter The main way to insert blocks using the + button in the editing interface [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... [Type] Enhancement A suggestion for improvement.

Comments

@pattonwebz
Copy link
Member

pattonwebz commented Aug 31, 2019

When creating a new paragraph it is possible to transform it into a list by starting it with an asterisk. It is however not possible to create a paragraph that starts with an asterisk because it is always transformed and it is not possible to transform back to a paragraph without loosing the asterisk.

This same behaviour also happens with quotes as well I hear.

To reproduce

  1. Create a new paragraph block.
  2. Start the paragraph with an asterisk and press space - paragraph transforms to list.
  3. Transform the list back to a paragraph and the asterisk is gone.

Expected behavior
Ability to prevent the transform somehow or revert it without character losses.

Screenshots
Peek 2019-08-31 22-41

Notes
One suggestion was that this could work similar to the double ## used to transform paragraph to heading and another suggestion was shift + space

@senadir senadir added [Feature] Inserter The main way to insert blocks using the + button in the editing interface [Type] Enhancement A suggestion for improvement. [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... labels Aug 31, 2019
@senadir
Copy link
Contributor

senadir commented Aug 31, 2019

I'm not sure if I can call this a bug or a feature request, I'm leaving it up to @ellatrix & @mapk to decide

@pattonwebz
Copy link
Member Author

pattonwebz commented Aug 31, 2019

Yeah I clicked back and forth between those a couple times when opening this, also uncertain if it's a bug or a feature.

For some added context though about why I checked bug:

This issue I hit early on when writing my post today and to fix it I flicked to the html editor. I did not return back to blocks - I wrote the rest of the post in html.

I only mentioned this in the core-editor channel because I realised the fact I stayed in the html editor and did not revert back to blocks put me in a situation where the new editor was not helping me - it was only in my way. That's the opposite of what I want users to be doing and I guess I should also want the same of myself 😛

@mcsf
Copy link
Contributor

mcsf commented Aug 31, 2019

#14776 was merged recently and sought to address this problem using Undo. @pattonwebz, would it solve your problem?

@pattonwebz
Copy link
Member Author

I will try pull the latest branch and test this when I get a chance. Looks like that would solve the problem I ran into :)

@senadir
Copy link
Contributor

senadir commented Aug 31, 2019

it's available in 6.4 and wordpress.com as I've tested, I'm going to close this for now since it's already solved, feel free to open back if anything came up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Inserter The main way to insert blocks using the + button in the editing interface [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

3 participants