You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#112260 Figure Caption breaks image align center

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Ryan on Thursday, 10 November 2022 14:47 GMT

lipatovroman
Hello!
Steps:
1. p align = center
2. adding image
3. adding Figure to the image
4. image not centered anymore and it's impossible to center it.

Video - https://directory.audio/images/monopics/2022-11-08_19-59-09.mp4

Ryan
Try this:

1. Insert the image.
2. Apply the Figure from the Format list.
3. Write the caption.
4. Click on the image to select it.
5. Click the Align Center button in the editor toolbar.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

lipatovroman
[quotePost id="112264"]Try this:

1. Insert the image.
2. Apply the Figure from the Format list.
3. Write the caption.
4. Click on the image to select it.
5. Click the Align Center button in the editor toolbar.[/quotePost]

Ok, it's working.
But very strange behavior.
Caption text is not centered.
We can have only image centered OR figcaption.
Impossible to center both.
Video - https://directory.audio/images/monopics/2022-11-09_15-43-42.mp4

Ryan
I am looking into this but one solution is to force the caption text to be centered using css in your template stylesheet, eg:

figure figcaption {
    text-align: center;
}

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Ryan
Please try JCE Pro 2.9.33 Beta - https://www.joomlacontenteditor.net/downloads/editor/pro/development

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.