Hello
I have some custom modules where the background color is blue and the text is white. When I try to edit them, if I click on the text, JCE highlights the line with a very light background, making the text unreadable (white on white), and I can’t work on it.
How can I prevent this? Or how can I change JCE’s selection color?
Thank you
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
09:00 - 17:00 Europe/London (BST)
Please create a new Ticket and we will get back to you as soon as we can.
#117792 Selection background color
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 ant on Monday, 29 June 2026 15:48 BST
Monday, 22 June 2026 17:51 BST
Monday, 29 June 2026 14:16 BST
The simplest solution is to set the High Contrast Mode option in the Editor Global Configuration to Yes. This will force black text on a white background for all editor content.
Ryan Demmer
Lead Developer / CEO / CTO
Just because you're not paranoid doesn't mean everybody isn't out to get you.
Monday, 29 June 2026 14:34 BST
How is the background colour for the module set?
Ryan Demmer
Lead Developer / CEO / CTO
Just because you're not paranoid doesn't mean everybody isn't out to get you.
Monday, 29 June 2026 14:37 BST
using editor.css custom file (it's Gantry/Hydrogen template)
Monday, 29 June 2026 14:45 BST
Can you post the contents of the editor.css file here, or just hte part that sets the background and text colour?
Ryan Demmer
Lead Developer / CEO / CTO
Just because you're not paranoid doesn't mean everybody isn't out to get you.
Monday, 29 June 2026 14:49 BST
body {
font-family: "EB Garamond", georgia, serif!important;
-moz-osx-font-smoothing: auto;
/* background-color: #FFFFFF !important;*/
font-size: 18px!important;
line-height: 1.5;
}
.full-width-image {
width: 100vw;
position: relative;
left: 50%;
right: 50%;
margin-left: -50vw;
margin-right: -50vw;
height: auto;
max-width: inherit!important;
display: inherit!important;
vertical-align: inherit!important;
border: inherit!important;
}
.titolo-numero-box {
width: 100vw;
position: relative;
left: 50%;
right: 50%;
margin-left: -50vw;
margin-right: -50vw;
height: auto;
max-width: inherit!important;
display: inherit!important;
vertical-align: inherit!important;
border: inherit!important;
padding: 0 30px;
background-color: #31438b;
margin-bottom: 20px;
}
.titolo-numero, .titolo-numero a {
font-size: 4rem!important;
line-height: 100%!important;
color: white;
}
.titolo-numero, .titolo-numero a:hover {
color: #edd61e;
background-color: transparent!important;
}
data-mce-selected="inline-boundary"] {
background-color: transparent!important;
}
.info-numero, .info-numero a {
font-size: 1.2rem!important;
line-height: 100%!important;
color: white;
text-align: left;
padding-top: 10px;
}
.info-numero, .info-numero a:hover {
color: #edd61e;
}
.jicons-icons {
display: none!important;
}
div.thumbnail.pull-right img {
max-height: 300px!important;
height: auto!important;
text-align: center!important;
float: left!important;
}
strong {
color: inherit!important;
}
body {
font-size: 1.1rem;
line-height: 1.5;
}
h1, h2, h3, h4, h5, h6 {
margin: 0.25rem 0px !important;
text-rendering: optimizeLegibility;
}
p {
margin-top: 1.5rem;
margin-bottom: 1.5rem;
}
hr {
border-bottom: 10px solid #edd61e;
margin-top: 0.25em!important;
margin-bottom: 0.25em!important;
}
Monday, 29 June 2026 15:25 BST
These styles don't include a background-color property on the body tag. Does the module use a background image set in the module parameters?
Ryan Demmer
Lead Developer / CEO / CTO
Just because you're not paranoid doesn't mean everybody isn't out to get you.
Monday, 29 June 2026 15:29 BST
<div class="titolo-numero-box">
<div style="float: left; border: 0px none; text-align: left; width: 45%; min-width: 300px; padding: 0px;"><a href="https://www.joomlacontenteditor.net/index.php?option=com_content&view=article&id=413:sommario&catid=24:numero-012&Itemid=120"><img src="https://www.joomlacontenteditor.net/images/012/00_header_GS.png" alt="Numero 12" width="154" height="250" style="margin-top: 10px; float: right;" /></a></div>
<div style="float: left; border: 0px none; text-align: left; width: 45%; min-width: 300px; padding: 10px;">
<p class="titolo-numero"><a href="https://www.joomlacontenteditor.net/index.php?option=com_content&view=article&id=413:sommario&catid=24:numero-012&Itemid=120"><strong><strong><em>La poesia può trasformare la morte in fiori?</em></strong></strong></a></p>
<p class="info-numero"><a href="https://www.joomlacontenteditor.net/index.php?option=com_content&view=article&id=413:sommario&catid=24:numero-012&Itemid=120">Numero 12 giugno 2025<br /><strong>Sommario</strong></a></p>
</div>
<div style="clear: both;"> </div>
</div>
It's a div: <div class="titolo-numero-box">
Monday, 29 June 2026 15:44 BST
You have this override in the css:
data-mce-selected="inline-boundary"] {
background-color: transparent!important;
}
but it should be:
[data-mce-selected="inline-boundary"] {
background-color: transparent!important;
} Ryan Demmer
Lead Developer / CEO / CTO
Just because you're not paranoid doesn't mean everybody isn't out to get you.
Monday, 29 June 2026 15:48 BST
!!!
Thanks
Please wait
Your post is being submitted…
