gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

No ability to indent

Open michaelswengel opened this issue 7 years ago • 41 comments

Is your feature request related to a problem? Please describe. In the old WP editor, we had the ability to indent paragraphs, list items, or whole sections of text at will. Gutenberg apparently provides no way to do this. This is a feature that I used very very frequently and need to have.

For example, items under an H3/H4 could be indented under an H2 if needed. One use case would be something like the following:

3 Reasons Gutenberg Needs Better Indentation Control

      Reason 1 Heading Here
      P: Reason 1 paragraph text here. This type of formatting wouldn't work as a typical list item.

      Reason 2 Heading Here
      P: Reason 2 paragraph text here.

      Reason 3 Heading Here
      P: Reason 3 paragraph text here.

Next major point of article.

This type of formatting makes posts far easier to follow visually and better organizes information. Hopefully this makes sense.

Describe the solution you'd like I would like to see native indent/outdent abilities return in Gutenberg. This is the ideal (and honestly, only) solution.

Describe alternatives you've considered Using a classic block or the classic editor is not a solution as these will be going away in the future. While this can be done to a limited extent via HTML, most people are not comfortable with HTML/CSS and should not be required to use it to do what was so easy to do in the old editor.

PLEASE bring native indenting to Gutenberg.

michaelswengel avatar Mar 21 '19 17:03 michaelswengel

I wholeheartedly support adding the ability to indent paragraphs and other items. We, too, do that all the time. It is strange that this feature has been omitted from Gutenberg.

As the feature is not available, one has to use an HTML solution that invariable causes an error message, although the solution works after converting the block into HTML - see my bug report at

https://github.com/WordPress/gutenberg/issues/14672

vesaraiskila avatar Mar 28 '19 01:03 vesaraiskila

Agreed. PLEASE bring back the ability to indent paragraphs. This is a very important feature for many of us.

michaelswengel avatar Mar 28 '19 15:03 michaelswengel

Using a classic block [...] is not a solution as these will be going away in the future.

Can you elaborate on where this information comes from? Specifically about the block. The "Classic Editor" plugin support window being defined as through December 31, 2021, but the classic block is not part of the Classic Editor plugin.

aduth avatar Mar 28 '19 16:03 aduth

@aduth , the classic editor is going away we are told. Is that wrong?

Are you saying you plan to support the classic block indefinitely?

michaelswengel avatar Mar 28 '19 16:03 michaelswengel

I'm not aware of plans to stop supporting the Classic block. It serves a different purpose from the Classic Editor plugin. The block exists largely to preserve the integrity of content produced prior to WordPress 5.0. The plugin serves to restore the pre-5.0 visual interface as users transition to the new editor.

To be clear, this says nothing of whether it may be subject to future iterations in its how it looks and behaves, but I expect it would continue to exist in one form or another.

aduth avatar Mar 28 '19 18:03 aduth

That's good news. However, having to use the classic block for something like this doesn't exactly lend itself to a seamless, enjoyable experience with Gutenberg, and it would be awesome if we can get it baked in. :)

michaelswengel avatar Mar 28 '19 19:03 michaelswengel

I was advised earlier to use something like this in the HTML mode to achieve paragraph indentation:

<p style="padding-left: 30px;">A paragraph to be indented</p>

However, doing that invokes an error message, and after resolving it in a way that maintains the indentation, the block can only be edited in HTML mode, which is cumbersome.

So, an important feature has been omitted, and a solution around it has significant problems of its own. I submitted a report about the latter at #14672

vesaraiskila avatar Mar 29 '19 12:03 vesaraiskila

As a newbie to WP, I assumed that indenting text blocks would be an indispensable function. I took it for granted that moving to Gutenberg would preserve that functionality.

I like Gutenberg so far, but this is a terrible limitation. On our site we indent text all the time for literary quotations etc, and not having a simple tool for doing this is perplexing.

PLEASE BRING BACK INDENT.

noahkarp avatar Apr 05 '19 20:04 noahkarp

I just started using WP and like other have said you can edit as HTML, but it throws an error at you. In addition, that block will remain in HTML format only from that point on. I thought Gutenberg was suppose to bring about simplicity?

In writing, starting a new paragraph should be indented, omitting such a basic writing concept is absurd.

ghost avatar May 22 '19 23:05 ghost

I'm stunned by the fact that indenting is not supported in Gutenberg...

cvladan avatar Oct 15 '19 02:10 cvladan

I agree - surely this should be part of the core functionality? Crazy that users have to edit HTML for a basic indent.

PaddyWhacks avatar Jan 29 '20 12:01 PaddyWhacks

@michaelswengel @PaddyWhacks I've added indent and outdent formats on EditorsKit plugin. I hope this could be a huge help. Indent will be available on the following blocks:

  • Paragraph Block
  • Heading Block
  • List Block

Here's the preview on how the formats work. Thanks!

Gutenberg indent formats

phpbits avatar Feb 10 '20 10:02 phpbits

Thanks Jeff. Sadly, this sort of plugin shouldn't be necessary. Hence our concerns here.

michaelswengel avatar Feb 12 '20 14:02 michaelswengel

I've worked on several sites recently where this was an issue (not being able to indent the first line of a paragraph). A plugin or CSS shouldn't be necessary for a paragraph block, as others have mentioned above, because this is a common formatting need for paragraphs. Also, not all users have access to these features (ie. CSS and plugins).

Just wanted to add that I've run into this 3 or 4 times in the last month.

ericamQA avatar Apr 09 '20 14:04 ericamQA

Agreed that this should be a native feature. Its omission is shocking.

jdoree avatar Apr 10 '20 15:04 jdoree

I also request this option and I even suggested it to Wordpress.com support

ricjcs avatar Apr 28 '20 13:04 ricjcs

Yes, just noticed the tech writer I work with is using spaces to indent paragraphs: <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on and on..</p>

LukaszJaro avatar May 27 '20 13:05 LukaszJaro

...and now they've removed indent from the Classic Block. Why?

devisan avatar Jun 22 '20 20:06 devisan

I am using the Gutenberg plugin version 8.4. At present time the easiest method is to add the Classic Block and use the Indent icon. (The below is in Norwegian.)

Screen Shot 2020-07-05 at 10 49 04

There are a lot of areas in Gutenberg core to focus on. This feature just has not yet been added to the Paragraph block. When someone has the time to add the feature it will likely make its way into the drop down similar to what Jeffrey did for EditorsKit.

@ellatrix I am just pinging you here so that you get a heads up about this issue.

paaljoachim avatar Jul 05 '20 08:07 paaljoachim

Like I said above, but you apparently didn't believe, the option has been removed recently. On all my sites. It was there a couple of months ago, but it's gone now. That's why I posted here. Screen Shot 2020-07-05 at 11 10 36 AM

devisan avatar Jul 05 '20 16:07 devisan