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 Online

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

#117122 Link colour being overwritten

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 ebura on Wednesday, 12 March 2025 15:33 GMT

ebura

I am facing a very weird behaviour:

Using the latest JCE Pro ( 2.9.83) + latest Joomla (5.2.5).

I've added my custom CSS to the editor (Profile > editor parameters > Typography > Editor Styles), it is overwriting as expected.

The problem is that JCE is using the following CSS (https://mysite.com/media/com_jce/editor/tinymce/themes/advanced/skins/modern/content.css?0878a38d79bd865bc0e2dba2d2f4ec3e=1&context=19&profile_id=6) and this stylesheet is changing the link colours of my content when I view it in the editor. (the styles responsible for that are these: body.mceContentReset a, body.mceContentReset a:link)

I placed an aditional CSS file to the editor styles, called "cms-editor.css", and I discovered that if I have the following definitions:

body {
color: #4C4B49;
}

It clears the overwritten link colours and it is now ok!

But the most interesting thing is that if I place the black colour:

body {
color: #000;
}

The link colours are overwritten (wrongly) again!

Ryan

In the Editor Global Configuration, you have set High Contrast Mode to Yes, so the link color is being overwritten.

Set High Contrast Mode to No or Auto.

Ryan Demmer

Lead Developer / CEO / CTO

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

ebura

I had it in "auto", turning it off solved the issue.

This means that the "auto" option could misbehave, maybe you should take a look at that.