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.

#117792 Selection background color

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 ant on Monday, 29 June 2026 15:48 BST

ant

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

Ryan

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.

ant

Hi

attached the result with High Contrast Mode enabled.

Attachments

Ryan

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.

ant

using editor.css custom file (it's Gantry/Hydrogen template)

Ryan

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.

ant
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;
}

Ryan

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.

ant
<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">

Ryan

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.

ant

!!!
Thanks