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.

#109490 Hide image caption parameters for Frontend editors

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 Joris on Thursday, 18 November 2021 14:55 GMT

Joris
Hi Ryan,

In a frontend editing situation, we want to hide the parameters that are offered in the Add caption dialog box for images (see also screenshot). We want our frontend editors just to submit the caption text; all styling is taken care of in the site's global styling. However:

- We cannot find settings to hide them in the Profile management.
- We also tried hiding them by changing the css in media/jce/css/plugin.css, however this has no effect.

Hope you can help us out on this one?

Attachments

Ryan
As an alternative to the Caption dialog, why not try the Figure format? This will create a
element around the image with a
element for the caption text. You can then style this as required using the sites css, eg:

https://cdn.joomlacontenteditor.net/images/news/296/figure-example.gif

Ryan Demmer

Lead Developer / CEO / CTO

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

Joris
Thanks, but for publishers we prefer the more intuitive caption buttons, if possible. We expected this code in {media/jce/css/plugin.css} to solve our problem:

[data-plugin="caption"] .uk-active div.uk-form-row {
	display: none;
}
[data-plugin="caption"] .uk-active div.uk-form-row:first-child {
	display: unset;
}
[data-plugin="caption"] #preview {
	display: none;
}
But still there. What do we miss?

Ryan
This worked in my tests:

[data-plugin="caption"] #text_tab > .uk-form-row {
	display: none;
}

[data-plugin="caption"] #text_tab > .uk-form-row:first-child {
	display: block;
}

[data-plugin="caption"] #preview {
	display: none;
}

Ryan Demmer

Lead Developer / CEO / CTO

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

Joris
Thank you Ryan. I think we had a cache problem. Everything is working as aspected now.