-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
No ability to indent #14554
Comments
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 |
Agreed. PLEASE bring back the ability to indent paragraphs. This is a very important feature for many of us. |
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 , the classic editor is going away we are told. Is that wrong? Are you saying you plan to support the classic block indefinitely? |
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. |
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. :) |
I was advised earlier to use something like this in the HTML mode to achieve paragraph indentation:
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. |
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. |
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. |
I'm stunned by the fact that indenting is not supported in Gutenberg... |
I agree - surely this should be part of the core functionality? Crazy that users have to edit HTML for a basic indent. |
@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:
Here's the preview on how the formats work. Thanks! |
Thanks Jeff. Sadly, this sort of plugin shouldn't be necessary. Hence
our concerns here.
|
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. |
Agreed that this should be a native feature. Its omission is shocking. |
I also request this option and I even suggested it to Wordpress.com support |
Yes, just noticed the tech writer I work with is using spaces to indent paragraphs: |
...and now they've removed indent from the Classic Block. Why? |
I am using the Gutenberg plugin version 8.4. There are a lot of areas in Gutenberg core to focus on. This feature just has not yet been added to the Paragraph block. @ellatrix I am just pinging you here so that you get a heads up about this issue. |
Hey @devisan I worked with a client site yesterday and could not find indentation in the paragraph block in Gutenberg so I did some searching. I added the above comment to how I indented using the classic block directly in Gutenberg and that worked alright. It is not believing or not, but what I did to create a work around. Your toolbar looks different then the Classic Block toolbar in Gutenberg. Example from a local site: Here is the toolbar with the Classic Editor plugin installed and activated. Indentation icons are seen in the second row. Here is the toolbar with the Gutenberg plugin 8.4 installed and activated. (Deactivated the Classic Editor plugin) It looks like you might be using the TinyMCE Advanced plugin. It should have a way to bring back indentation through a kind of settings page. Anyhow this issue is about getting indentation into Gutenberg. |
Getting some user feedback to add an indent capability. |
Wonderful, thanks Jeff. Still should be in the core functionality of Gutenberg, but awesome workaround until its added |
Heya Ian @automattic-ian It is awesome that you are looking into getting user feedback. It would be nice to add increase and decrease indent into the drop down menu. @ellatrix Ella, I am pinging you about this issue, as I think you might want to know about it. |
Indenting a paragraph should not be added at the rich text level, but at the paragraph level, similar to alignment. You cannot control the paragraph element with rich text, only the contents. For indentation you need to add a class or style to the paragraph element. |
Noting another request for indentation: For what it's worth I agree it should go in the paragraph styles block, although I have seen some folks ask for indentation to write poetry, when they don't want to change their font like the poetry block can. |
Just a note here: |
I'm not sure that would cover indentation of paragraphs if people want to indent those. |
From discussing in a scrub with @paaljoachim I wonder if we could instead add it to the alignment menu as indent/outdent; |
garretthyder - "We could use icons you find in most word editors ..." would be great. That's what you used to have! |
Ah right, thanks @DavidRuaune, I forgot there was already icons present for that in the Classic Editor so we have the dashicons we'd need. |
Got some user feedback to add an indent capability. |
It would be great to get a status update on this issue. Edit: That blockquote is meant to indent the full paragraph. https://www.w3schools.com/TAGS/tag_blockquote.asp To indent the full paragraph I had to name the CSS class name something else. In the Stylesheet I added
The backend did not show the CSS, but the indented paragraph could be seen on the frontend. Bottom line: |
Also requested in https://wordpress.com/forums/topic/paragraph-feature/ For the time being I gave the classic block option as a workaround, but is it not correct that we will be retiring this block eventually? I noted this in the description for the classic editor plugin:
That does not make it sound like the classic editor will be around indefinitely (but will instead sunset at some point) so does it seems safest to assume that the classic block functionality may also be removed around the same time? |
The classic editor will no longer be officially supported, but the classic block will not disappear, even because of the old posts. In fact, the classic block is equivalent to not having a block. If you look at the code of a post that has some classic block, you will see that the html code appears without any block. But indentation was something that should be part of the paragraph block, so that it was not necessary to insert the classic block just for that. |
Another way to handle this issue (for now at least) is this issue: |
Could an indent option be added to Text settings below the Drop cap option, like so: The CSS could be included in the paragraph stylesheet, something like:
As the drop cap is visually applied to start of the paragraph, this would make it more consistent as the indent is also visually applied at the start of the paragraph. |
Adding an indent option to paragraph blocks IMO would be wrong...
In the 1st case, a quote block should be used and not a paragraph block because the paragraph would be semantically incorrect. If a site/theme does indeed want this as an option in paragraphs for whatever reason, then it should be added as a block-style and not an option: register_block_style(
'core/paragraph',
array(
'name' => 'indented',
'label' => esc_html__( 'Indented', 'my-theme' ),
'inline_style' => 'p.is-style-indented { text-indent: 2em; }',
)
); |
Thank you Ari! Btw to indent the whole paragraph: https://ulyssesonline.com/2011/08/04/indent-entire-paragraph-using-css/ Another method I used. Was to add a custom CSS class under the CSS area of the Advanced panel. Then I added the CSS to the child theme style.css. |
Closing this in favor of #28524. |
In my opinion there are other reasons to use paragraph indentation besides quote (although it is probably the most used), such as an introduction, to highlight a paragraph, etc. Also, the plain quote style in many themes continues with the theme style instead of just the indented paragraph, and it also doesn't make sense to use this option if it's not a quote. For me, and in my opinion, the plain quote style does not completely replace the functionality of the Classic Block. Is there a possibility that this topic will be reopened? On Wp-calypso I noticed that a issue about this topic remains open: Gutenberg: Add indents to paragraphs |
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:
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.
The text was updated successfully, but these errors were encountered: