No Code Attached Yet bug
avatar ahotzler
ahotzler
27 Nov 2025

Steps to reproduce the issue

  1. Install Joomla!6.0.1 / or upgrade an 5x installation to 6.x
  2. dont touch or configre anything - just use default configuration
  3. login into backend
  4. Create/edit an article

Expected result

  • TinyMCE should load editor.css or editor.min.css from default template (as described in TinyMCE-Plugin settings and as was also the case in Joomla!5)

Actual result

  • TinyMCE doesnt load editor.css or editor.min.css
  • Neither from the template supplied nor from additionally installed templates.
  • Specifying a path to the CSS file in the plugin settings does not help either.

System information (as much as possible)

  • J!6.0.1
  • tried PHP8.4, 8.5 but loading the file should be done via javascript

Additional comments

The problem does not occur in the front end. I encounter the problem with Joomla! 6 new installations and with installations that have been updated from version 5 to 6.

No errors in browser console

No problem in frontend

"Template CSS Classes" enabled in TinyMCE-Plugin Settings

avatar ahotzler ahotzler - open - 27 Nov 2025
avatar joomla-cms-bot joomla-cms-bot - change - 27 Nov 2025
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 27 Nov 2025
avatar ahotzler ahotzler - change - 27 Nov 2025
The description was changed
avatar ahotzler ahotzler - edited - 27 Nov 2025
avatar ahotzler ahotzler - change - 27 Nov 2025
The description was changed
avatar ahotzler ahotzler - edited - 27 Nov 2025
avatar ahotzler ahotzler - change - 27 Nov 2025
The description was changed
avatar ahotzler ahotzler - edited - 27 Nov 2025
avatar ahotzler ahotzler - change - 27 Nov 2025
The description was changed
avatar ahotzler ahotzler - edited - 27 Nov 2025
avatar ahotzler ahotzler - change - 27 Nov 2025
The description was changed
avatar ahotzler ahotzler - edited - 27 Nov 2025
avatar ahotzler ahotzler - change - 27 Nov 2025
The description was changed
avatar ahotzler ahotzler - edited - 27 Nov 2025
avatar brianteeman
brianteeman - comment - 27 Nov 2025

Confirmed

avatar brianteeman
brianteeman - comment - 27 Nov 2025

The easy way to see this error is to add a readmore link in an article.

IF the editor.css was being loaded then that would be displayed as a dotted red line inside tinymce. But as it is not being loaded the readmore line is just displayed as a solid grey line

avatar ahotzler
ahotzler - comment - 27 Nov 2025

Exactly, that's what I noticed too.

avatar brianteeman
brianteeman - comment - 28 Nov 2025

annoyingly this error is not present when you install joomla manually including composer install and npm install which is why no one noticed it before

avatar ahotzler
ahotzler - comment - 28 Nov 2025

Thats crazy @brianteeman. Do you have the option of doing a diff or something similar of the installations of both variants?

avatar brianteeman
brianteeman - comment - 28 Nov 2025

I just did that and I dont see anything useful

avatar Nor486
Nor486 - comment - 28 Nov 2025

I just updated Joomla! to 6.0.1 and TinyMCE seems to work fine with Edge, but not with Chrome, even after clearing browser data. But in Chrome incognito window, the editor works! Strange...

Edit: Tested backend.

avatar ahotzler
ahotzler - comment - 28 Nov 2025

I just tested this: My various test pages in Chrome, Edge, Edge incognito, Firefox: In no case was editor.css loaded.
All tests in the backend

avatar chmst
chmst - comment - 28 Nov 2025

Confirmed. Works on sites with 5.4.1 but not with 6.0.

avatar chmst chmst - change - 28 Nov 2025
Labels Added: bug
avatar chmst chmst - labeled - 28 Nov 2025
avatar MacJoom
MacJoom - comment - 30 Nov 2025

Confirmed on an update from 6.0.0 to 6.0.1 (worked on 6.0.0)

avatar ahotzler
ahotzler - comment - 30 Nov 2025

Does anyone have a 6.0.0 and a 6.0.1 to verify that it works in 6.0.0? If so, we would need to examine the difference between 6.0.0 and 6.0.1 in this regard.

As I am currently traveling, I am unable to perform the comparison at this time.

avatar ahotzler
ahotzler - comment - 1 Dec 2025

So, I made a diff between a Joomla! 6.0.0 and 6.0.1 installation.

Among other things, the differences were in

/media/plg_editors_tinymce/js/tinymce.min.js

and, of course, their minimized and compressed versions.

A diff showed only this change:

25024# diff ./k0jdemoe6/htdocs/media/plg_editors_tinymce/js/tinymce.js  ./k0jdemoe5/htdocs/media/plg_editors_tinymce/js/tinymce.js
162a163
>       options.content_css = mql.matches ? 'dark' : 'default';
164a166
>       options.content_css = 'dark';

where k0jdemoe6 is 6.0.0 and k0jdemoe5 is 6.0.1.

After copying the files:

cp ./k0jdemoe6/htdocs/media/plg_editors_tinymce/js/tinymce.min.js.gz ./k0jdemoe5/htdocs/media/plg_editors_tinymce/js/tinymce.min.js.gz

and clearing the browser cache, the problem is solved.

Image

indicated by the red line, as mentioned by @brianteeman

I tested it with the standard template and with my own template “ahsimple”; in both cases, editor.min.css was loaded in the backend.

Can someone repeat this test to validate the whole thing?

avatar brianteeman
brianteeman - comment - 1 Dec 2025

That would be my fault then

avatar ahotzler
ahotzler - comment - 1 Dec 2025

You probably wanted to test how careful we are when editing texts :-)

What are the next steps? Can I just submit a PR? It's been a long time since my last PR, so it would be a good opportunity to practice.

Or will you do it, Brian?

avatar brianteeman
brianteeman - comment - 1 Dec 2025

I would still like to see why even with that change it works in a dev environment. That would suggest reverting that bugfix is not the solution

avatar ahotzler
ahotzler - comment - 1 Dec 2025

You're right. I hope it doesn't take too long. From the user's point of view, I would appreciate it if the next update included a fix, even if it's only a temporary rollback solution until the final fix is available.

avatar chmst
chmst - comment - 2 Dec 2025

I have built up my 6.0-dev environment from a fresh pull and there can confirm the issue. Changing the file as suggested by @ahotzler does nor make a difference.

avatar ahotzler
ahotzler - comment - 2 Dec 2025

Hm, crazy, i repaired some sites with the copy method. Maybe you should also copy the uncompressed versions?

avatar ahotzler
ahotzler - comment - 3 Dec 2025

Strange, I just had a case where a page on which I copied the file as described did not load the editor.css classes when editing a post.

I closed the editor, turned on the inspector, created a new post: editor.css was loaded.

Then I reopened the previous article, and now it was loaded there too—but I didn't change anything except opening the inspector.

avatar MacJoom
MacJoom - comment - 6 Dec 2025

Yes there a are changes in the TinyMCE.js that seems to prevent the loading
Around line 163 - two new lines: ( // NEW !!!)

// For templates with OS preferred color scheme
if ('colorSchemeOs' in document.documentElement.dataset) {
  const mql = window.matchMedia('(prefers-color-scheme: dark)');
  options.skin = mql.matches ? skinDark : skinLight;
  options.content_css = mql.matches ? 'dark' : 'default'; // NEW!!!!
} else if (document.documentElement.dataset.colorScheme === 'dark') {
  options.skin = skinDark;
  options.content_css = 'dark'; // NEW !!!
}

without the two lines - the js loads just fine.

avatar brianteeman
brianteeman - comment - 6 Dec 2025

weird that those lines prevent editor.css from loading
and weird that even with those lines there is no problem with a git checkout - only with a download

avatar Fedik
Fedik - comment - 6 Dec 2025

Well guys, #46377 need to be reverted OR revorked.

content_css IS the editor.css
https://www.tiny.cloud/docs/tinymce/latest/add-css-options/

avatar brianteeman
brianteeman - comment - 6 Dec 2025

So why does it work correctly if you do a git checkout and then composer and npm install but doesn't work when you download a release

avatar ahotzler
ahotzler - comment - 6 Dec 2025

It really doesn’t matter from my perspective.

What does matter is that users currently can’t work with it.

That’s why I fully agree with your view and suggested the following approach:

For now, revert to the previously working state and include the fix in the next update.

We can still investigate the unusual behavior afterwards — the main goal should be to ensure that regular users can work without issues.

avatar Fedik
Fedik - comment - 6 Dec 2025

So why does it work correctly if you do a git checkout and then composer and npm install but doesn't work when you download a release

I did not checked that deep, maybe something wrong with build script (again).

Or you have something with colorScheme in cookies for Dev installation.
It willl work in checkout when colorScheme is not dark and not "OS", because in tinymce.js there:
document.documentElement.dataset.colorScheme === 'dark'

avatar Fedik
Fedik - comment - 6 Dec 2025

The fix is pretty simple.
The code from #46377 should check if (!options.content_css) before setting the value.

avatar dgrammatiko
dgrammatiko - comment - 7 Dec 2025

Please test #46543

avatar alikon alikon - change - 7 Dec 2025
Status New Closed
Closed_Date 0000-00-00 00:00:00 2025-12-07 08:40:10
Closed_By alikon
avatar alikon alikon - close - 7 Dec 2025
avatar alikon
alikon - comment - 7 Dec 2025

closing as we have a pr for testing #46543

Add a Comment

Login with GitHub to post a comment