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

Cannot use Alt+Shift+J to set text alignment to justified #8433

Closed
c-ro82 opened this issue Aug 3, 2018 · 17 comments

Comments

Projects
None yet
@c-ro82
Copy link

commented Aug 3, 2018

Hi

I write all my texts with justification. Today I've installed the gutenberg-Editor and I had to realize there's no option to format with justification (or am I wrong?). I've tried ALT+SHIFT+J but did not work...

Is there any chance to get the possibility of justification?

Thanks
Chris

@swissspidy

This comment has been minimized.

Copy link
Member

commented Aug 3, 2018

Note that there's no justification button in the classic editor since WordPress 4.7, see https://core.trac.wordpress.org/changeset/38932

@c-ro82

This comment has been minimized.

Copy link
Author

commented Aug 3, 2018

I know that, but with ALT+SHIFT+J it was possible to do this. With the gutenbergeditor it's not possible to do that...

@Xarcell

This comment has been minimized.

Copy link

commented Aug 3, 2018

I write with justification as well. Too bad this feature isn't there. It appears Gutenberg is making things worse instead of better.

@ZebulanStanphill

This comment has been minimized.

Copy link
Contributor

commented Aug 3, 2018

@c-ro82 @Xarcell

Notably, you can still manually use justification alignment by using the Edit as HTML to add it in manually, or by using a custom CSS class to add the style to the blocks you want to use it on. (I would recommend the former.)

image
image

Also notable is that a plugin could add the option back, since Gutenberg is designed to be extended by plugins just like WordPress in general.

Apparently the justification option was removed from WordPress because it was bad for accessibility, was not used much, and was considered bad practice.

That said, perhaps the keyboard shortcut should still work. Pinging @karmatosed about this.

@c-ro82

This comment has been minimized.

Copy link
Author

commented Aug 3, 2018

Thanks. I know, that it is possible to use the html-editor and this way is ok, but if you go back to the block-editor, the justification will be removed every time. That‘s really annoying, unfortunately.

@ZebulanStanphill

This comment has been minimized.

Copy link
Contributor

commented Aug 3, 2018

@c-ro82 It is? Oh, well I think that is a bug. I have just reported it here: #8450.

@c-ro82

This comment has been minimized.

Copy link
Author

commented Aug 3, 2018

I used this tag

<p align="justify">TEXT</p>

Maybe it‘s wrong?

@ZebulanStanphill

This comment has been minimized.

Copy link
Contributor

commented Aug 3, 2018

@c-ro82 Yeah, that attribute was deprecated in HTML a long time ago. Since the advent of HTML5, there has been a push to separate document semantic meaning/structure from style and visuals. Text alignment is style, so it belongs in CSS, and not as a dedicated HTML attribute. Therefore, the correct way to have justified text is the following:

<p style="text-align:justify">TEXT</p>.

However, despite being allowed by the HTML5 and CSS3 spec, the Paragraph block does not consider this valid, which is why I created #8450.

@c-ro82

This comment has been minimized.

Copy link
Author

commented Aug 3, 2018

Thanks Zeb!

@designsimply designsimply changed the title Where is the justification possibility? Cannot use Alt+Shift+J to add text justification alignment Aug 4, 2018

@designsimply designsimply changed the title Cannot use Alt+Shift+J to add text justification alignment Cannot use Alt+Shift+J to set text alignment to justified Aug 4, 2018

@earnjam earnjam referenced this issue Aug 7, 2018

Closed

JUSTIFICATION #8673

@parnanet

This comment has been minimized.

Copy link

commented Aug 7, 2018

Removing justification was always a BIG mistake. Terrible decision, since version 4.7
I hope developers reconsider that decision .
Or at least someone come up with another plugin that works with this new editor... otherwise, I'll go back to the old editor and be happy.

@c-ro82

This comment has been minimized.

Copy link
Author

commented Aug 7, 2018

Again: justification was never removed, just the button was removed. It was possible to use Alt+Shift+J. But with the Gutenbergeditor this option is not working at the moment...

@c-ro82

This comment has been minimized.

Copy link
Author

commented Aug 13, 2018

They just released a new Version of Gutenberg and the "HTML/Block-Bug" (not sure that it is a bug) is still there... it's a bit annoying...

@ellatrix

This comment has been minimized.

Copy link
Member

commented Oct 31, 2018

Removing the rich text label as this is not related to the rich text component, but rather to block attributes.

@burnuser

This comment has been minimized.

Copy link

commented Nov 12, 2018

In Gutenberg 4.3 thankfully inline-formatting is not longer lost if converting a classic block into regular blocks. Only justify is still lost! (And can not be done in Gutenberg!)
Imagine a large site with a lot of justified text ... and the impact of justify-destroying Gutenberg ...

@fstath

This comment has been minimized.

Copy link

commented Nov 15, 2018

@pedrohgodoys

This comment has been minimized.

Copy link

commented Nov 23, 2018

I really don't understand why they removed justify buttom. Isn't everybody how knows anything about HTML5 and/or CSS, and that's a big mistake, really. Add this buttom take money? Space? I really can't understand that.

@ellatrix

This comment has been minimized.

Copy link
Member

commented Nov 26, 2018

Duplicate of #8450.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.