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
Closed

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

c-ro82 opened this issue Aug 3, 2018 · 17 comments
Labels
Needs Decision Needs a decision to be actionable or relevant [Type] Enhancement A suggestion for improvement.

Comments

@c-ro82
Copy link

c-ro82 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

@youknowriad youknowriad added [Type] Enhancement A suggestion for improvement. [Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable labels Aug 3, 2018
@swissspidy
Copy link
Member

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
Copy link
Author

c-ro82 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
Copy link

Xarcell 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
Copy link
Member

ZebulanStanphill 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
Copy link
Author

c-ro82 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
Copy link
Member

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

@c-ro82
Copy link
Author

c-ro82 commented Aug 3, 2018

I used this tag

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

Maybe it‘s wrong?

@ZebulanStanphill
Copy link
Member

@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
Copy link
Author

c-ro82 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 added the Needs Decision Needs a decision to be actionable or relevant label 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 mentioned this issue Aug 7, 2018
@parnanet
Copy link

parnanet 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
Copy link
Author

c-ro82 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
Copy link
Author

c-ro82 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 ellatrix removed the [Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable label Oct 31, 2018
@ellatrix
Copy link
Member

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

@burnuser
Copy link

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
Copy link

fstath commented Nov 15, 2018

@pedrohgodoys
Copy link

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
Copy link
Member

Duplicate of #8450.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Decision Needs a decision to be actionable or relevant [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests