? ? ? Pending

User tests: Successful: Unsuccessful:

avatar C-Lodder
C-Lodder
29 May 2020

Summary of Changes

TinyMCE has the ability to set the editor theme, however there are 2 parts to this:

  1. The editor wrapper (skin)
  2. The content itself

Until now, Joomla has only supported setting the Skin and has included its own editor.css file.

What this PR does is:

  • Remove the old Template CSS Classes parameter.
  • Adds 2 new parameters (site/admin) to set the Content CSS.
  • Maintains support for using a editor.css file, only if specified.

Testing Instructions

  1. Open TinyMCE in your Plugin Manager
  2. Click on the Set 0 tab
  3. Set the Site/Administrator Content CSS option to dark

Actual result

The whole editor is now a dark theme:

screeny

avatar C-Lodder C-Lodder - open - 29 May 2020
avatar C-Lodder C-Lodder - change - 29 May 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 29 May 2020
Category Administration Language & Strings Front End Plugins
avatar dgrammatiko
dgrammatiko - comment - 29 May 2020

This is wrong, the tinyMCE theming should follow the regular Joomla overriding way, eg to override a theme you should just place the new theme in the template css/vendor/...blabla. No options needed also it's the expected way. Let's do this properly not introducing exceptions. It's my fault I should have done this the right way many years ago when I introduced the theming option.BTW the code already exists here: #14510

EDIT: So after reading a bit on the new features of tinyMCE and some talk with @C-Lodder I was wrong this is fine! Anyway I was talking about the skin this is about the content, not the same thing apparently

avatar brianteeman
brianteeman - comment - 29 May 2020

Doesnt this prevent a template from shipping an editor.css file ?

avatar C-Lodder
C-Lodder - comment - 29 May 2020

@brianteeman Technically no, but you would have to explicitly set the Custom CSS Classes option to editor.css if you wanted to use it. Could re-add the auto detection, but will close in favour of: #29259

avatar C-Lodder C-Lodder - change - 29 May 2020
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2020-05-29 17:28:46
Closed_By C-Lodder
Labels Added: ? ?
avatar C-Lodder C-Lodder - close - 29 May 2020
avatar brianteeman
brianteeman - comment - 29 May 2020

as its closed its not an issue any more as that pr doesnt change template css

avatar dgrammatiko
dgrammatiko - comment - 29 May 2020

@C-Lodder please reopen this one, it covers other aspects and features that are not accessible right now. Just fix it so it will pick up editor.css automatically and we're good

avatar C-Lodder
C-Lodder - comment - 30 May 2020

@dgrammatiko I'll wait until this is merged

avatar Quy
Quy - comment - 1 Jun 2020

@C-Lodder Please reopen. Thanks.

avatar C-Lodder C-Lodder - change - 1 Jun 2020
Status Closed New
Closed_Date 2020-05-29 17:28:46
Closed_By C-Lodder
avatar C-Lodder C-Lodder - change - 1 Jun 2020
Status New Pending
avatar C-Lodder C-Lodder - reopen - 1 Jun 2020
avatar C-Lodder C-Lodder - change - 5 Jun 2020
Title
[4.0] Add support for TinyMCE content_css
[4.0] [WIP] Add support for TinyMCE content_css
avatar C-Lodder C-Lodder - edited - 5 Jun 2020
avatar opn365 opn365 - test_item - 17 Oct 2020 - Tested successfully
avatar opn365
opn365 - comment - 17 Oct 2020

I have tested this item successfully on 2c8c332


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29257.

avatar gostn gostn - test_item - 17 Oct 2020 - Tested successfully
avatar gostn
gostn - comment - 17 Oct 2020

I have tested this item successfully on 2c8c332

Default + pr:

image


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29257.
avatar richard67
richard67 - comment - 17 Oct 2020

Unfortunately the pull request here shows a conflict for the administrator/language/en-GB/plg_editors_tinymce.ini, so it shouldn't be set RTC (ready to commit) even if it has 2 good tests.

I'll try to solve the conflict later if @C-Lodder wasn't faster.

avatar richard67 richard67 - change - 17 Oct 2020
Labels Added: Conflicting Files
avatar richard67
richard67 - comment - 17 Oct 2020

I've solved the conflict. It was just in the language strings so previous tests are still valid.

avatar richard67 richard67 - alter_testresult - 17 Oct 2020 - opn365: Tested successfully
avatar richard67 richard67 - alter_testresult - 17 Oct 2020 - gostn: Tested successfully
avatar richard67
richard67 - comment - 17 Oct 2020

Will set it RTC as soon as I can see the automated tests are passing.

avatar C-Lodder
C-Lodder - comment - 17 Oct 2020

Richard, this currently breaks B/C a little

avatar richard67
richard67 - comment - 17 Oct 2020

Richard, this currently breaks B/C a little

@C-Lodder What? The PR? Or how I solved the conflict? And what shall we do now?

avatar softforge softforge - test_item - 17 Oct 2020 - Tested successfully
avatar softforge
softforge - comment - 17 Oct 2020

I have tested this item successfully on f406d88

I was testing as well but other tester had not filled in in the sheet so its for extra tests!


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29257.

avatar C-Lodder
C-Lodder - comment - 17 Oct 2020

@richard67 see this #29257 (comment)

Let me revisit it this weekend

avatar richard67
richard67 - comment - 17 Oct 2020

@richard67 see this #29257 (comment)

Let me revisit it this weekend

@C-Lodder Ok, thanks in advance. I'll set the "Updates Requested" label so nobody sets RTC. Let me know when I shall remove that label.

avatar C-Lodder
C-Lodder - comment - 18 Oct 2020

I'm going to close this as it's been too long since I last worked on it, and I'm too burned out to continue the thought process.

Will leave the branch open it anyone wants to continue with it.

avatar C-Lodder C-Lodder - close - 18 Oct 2020
avatar C-Lodder C-Lodder - change - 18 Oct 2020
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2020-10-18 15:31:27
Closed_By C-Lodder
Labels Added: ?
Removed: Conflicting Files

Add a Comment

Login with GitHub to post a comment