WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.25k stars 4.09k forks source link

Option to turn off block auto-conversion (particularly lists) #44240

Open OsakaWebbie opened 1 year ago

OsakaWebbie commented 1 year ago

What problem does this address?

Currently, if 1. or * is typed or pasted into an empty paragraph block, the block is automatically changed to a list block. And if the user tries to change it back, the number or asterisk is removed. Yes, I know that if one notices it right away (before typing more text) and does Undo at that moment, it will revert, but that's not intuitive. Some users (like me) never want such auto-conversion, or it would be undesired on some types of sites, but there doesn't appear to be any way to disable it.

What is your proposed solution?

Add a checkbox somewhere - perhaps something like this (enabled by default):  ☑ Automatically change "1. " or "* " to list block I don't know what other auto-conversions the editor is designed to do - I've only personally run into the list one. But if there are others, a similar option for those would be good too.

Or even a more general one - something like this:  ☑ Automatically change block type if applicable text is detected

As for where to put the checkbox, I assume it would be in the editor's Preferences (either the General or Blocks tab). Or it could be in the main WordPress settings area (e.g. Writing Settings) - that's actually the first place I looked for it, before I remembered that the editor has its own set of settings. Whichever is easier, I guess.

behrang1981 commented 4 months ago

Any update or progress on this? This non-handable auto conversion is problematic especially when you work in a sports editorial team and you begin your paragraphs with the club name like "1. FC Köln". Although you can undo the conversion it's not very pracitcal as you would need to undo immediately after "1.".

Is there any block filter that could help here? Is there a general disable markdown magic filter?