Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.3] Tinymce - style previews #40206

Merged
merged 2 commits into from
May 5, 2023
Merged

Conversation

brianteeman
Copy link
Contributor

Pull Request for Issue #40079 .

Summary of Changes

Specify the atributes to be used when previewing a style. This prevents white text on a white background making the preview invisible.

Testing Instructions

Add the following class to media\system\css\editor.css or media\system\css\editor.min.css (depends if you have debug on

.white-text {
  color: #fff;
}

Actual result BEFORE applying this Pull Request

You cannot see the class in the menu as its color of white is used in the preview and makes it invisible

image

Expected result AFTER applying this Pull Request

You can see the class as we don't preview colours in the menu

image

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

@korenevskiy
Copy link
Contributor

korenevskiy commented Mar 26, 2023

@brianteeman I tested and also tried an alternative option. I added the image background style to the array.
Which may be relevant the same way as background-color.
We see that the background of the pictures will not be applied to the menu item, since the background of the picture has a relative path error. This may not be relevant. Since we don't use this style. But if we use the background-color style, then we need to use the background-image style.
And also, bravo, thank you. I was just going to search by myself.

image

@brianteeman
Copy link
Contributor Author

thats not a good approach. As tinymce provide an option xpecifically for this then we should use it.

@korenevskiy
Copy link
Contributor

korenevskiy commented Mar 26, 2023

This is probably due to the fact that it was decided not to use the <BASE> header tag.
Since we see that using basic libraries such as TinyMCE causes path relativity errors.

@korenevskiy
Copy link
Contributor

korenevskiy commented Mar 26, 2023

Are there any plans to go back to the idea of using the <BASE> tag sometime in the future?

@brianteeman
Copy link
Contributor Author

it is irrelevant. it is not the correct way to do this. when there is a documented api it should always be used. Especially when it is from a third party. Then you will know that if they change it you will need to update.

@korenevskiy
Copy link
Contributor

korenevskiy commented Mar 26, 2023

I meant in major versions a return to using the BASE tag, with new rules with new functions, with a new API

@brianteeman
Copy link
Contributor Author

this is not the topic of this Pull Request. Every time you go off topic you delay the changes. I made this pull request because you asked for it. if you dont want it then I will simply close it and do something more interesting.

@korenevskiy
Copy link
Contributor

korenevskiy commented Mar 26, 2023

Thanks. I tested it. Excellent. Everything works.

I didn't want to delay. I am very grateful. I was interested about a general question.

@Quy
Copy link
Contributor

Quy commented Mar 29, 2023

I have tested this item ✅ successfully on daf8b27


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

@Quy
Copy link
Contributor

Quy commented Mar 29, 2023

RTC


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

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Mar 29, 2023
@Hackwar Hackwar added the bug label Apr 8, 2023
@obuisard obuisard added this to the Joomla! 4.3.2 milestone May 5, 2023
@obuisard obuisard merged commit 4baefcf into joomla:4.3-dev May 5, 2023
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label May 5, 2023
@obuisard
Copy link
Contributor

obuisard commented May 5, 2023

Thanks Brian @brianteeman, great PR.

@brianteeman
Copy link
Contributor Author

thx

@brianteeman brianteeman deleted the tiny_p0review branch May 5, 2023 06:23
@korenevskiy
Copy link
Contributor

korenevskiy commented May 5, 2023

Thanks Brian Teeman

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants