No Code Attached Yet
avatar cmirnow
cmirnow
14 Feb 2024

Steps to reproduce the issue

If "Figure Caption" is set, you cannot center (right, left, justify) an image.

1

Actual result

<p><img style="display: block; margin-left: auto; margin-right: auto;" src="images/banners/white.png" width="234" height="74" loading="lazy" data-path="local-images:/banners/white.png" /></p>
<figure class="image align-center"><img src="images/banners/white.png" alt="test" width="234" height="74" loading="lazy" data-path="local-images:/banners/white.png" />
<figcaption>test</figcaption>
</figure>
<figure class="image align-right"><img src="images/banners/white.png" alt="test" width="234" height="74" loading="lazy" data-path="local-images:/banners/white.png" />
<figcaption>test</figcaption>
</figure>

System information (as much as possible)

Joomla 5.0.2
php 8.2

Additional comments

2
3

avatar cmirnow cmirnow - open - 14 Feb 2024
avatar joomla-cms-bot joomla-cms-bot - change - 14 Feb 2024
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 14 Feb 2024
avatar TheNourhan
TheNourhan - comment - 16 Feb 2024

Can you give me the path of this page?

avatar cmirnow
cmirnow - comment - 16 Feb 2024

Can you give me the path of this page?

Ok. Live Demo.

avatar cmirnow cmirnow - change - 16 Feb 2024
The description was changed
avatar cmirnow cmirnow - edited - 16 Feb 2024
avatar TheNourhan
TheNourhan - comment - 17 Feb 2024

this problem does not appear for me

Screenshot 2024-02-17 111743
avatar cmirnow
cmirnow - comment - 17 Feb 2024

Just copy the HTML I showed in my first post and paste it, deleting everything else, into any Joomla article. And now open the page on the web.

I see this problem as in my old blog, which is upgraded to Joomla 5.0.2. And the same problem is inherent in the clean Joomla installation I did at your request, which contains all the default configurations.

Take a look. Open the source code of this page. Centering a single image in an article doesn't work::

<figure class="image align-center">
------
</figure>
avatar chmst
chmst - comment - 19 Feb 2024

This should be text-center, not align-center.
I there a template override?

avatar cmirnow
cmirnow - comment - 19 Feb 2024

I there a template override?

@chmst ,

...the same problem is inherent in the clean Joomla installation I did at your request, which contains all the default configurations.

This problem appeared on my blog that I upgraded to Joomla 4.
The same problem exists immediately after a new installation of Joomla 4 and an upgrade to Joomla 5.
If you don't believe me, I am willing to provide full access to the test site.

P.S. The Joomla admin panel did not show any notifications about new or old overrides.

avatar cmirnow
cmirnow - comment - 21 Feb 2024

This should be text-center, not align-center. I there a template override?

@chmst , I don't understand what this has to do with template overrides. The error shows itself in the text editor, in the default template Cassiopeia, on a newly installed Joomla, where there are no extensions from third-party developers.

align

avatar Quy
Quy - comment - 21 Feb 2024

TinyMCE uses classes that are not in Bootstrap with Cassiopeia. Use text-center for center and text-end for right. See #35606 for discussion. Let's close this one and continue the discussion in the other issue.

avatar chmst chmst - close - 22 Feb 2024
avatar chmst
chmst - comment - 22 Feb 2024

The classes are for the figure container, not for the image

In your example: align-center is for vertically centering the image (not visible here), text-center is what you need
grafik

Questions like that are better in forum.loomla.org, Tere are many supporters who can help you. This is for bugs in Jooma core and so I'll close this here.

avatar chmst chmst - change - 22 Feb 2024
Status New Closed
Closed_Date 0000-00-00 00:00:00 2024-02-22 08:27:33
Closed_By chmst
avatar cmirnow
cmirnow - comment - 22 Feb 2024

In your example: align-center is for vertically centering the image (not visible here), text-center is what you need

I agree.
This is the reason why the editor icon that misleads users is Joomla's problem and not the user's problem:

align

align1

You are probably just now becoming aware of this incorrect problem, which does not testify in favor of the professionalism of Joomla developers:

@chmst :

This should be text-center, not align-center. I there a template override?

OK. If the development team has no desire to fix obvious problems, I have nothing to add. I wish you success on the Joomla user forum, @chmst .

Add a Comment

Login with GitHub to post a comment