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.1] TinyMCE changes for child templates 3/3 #36000

Closed

Conversation

dgrammatiko
Copy link
Contributor

@dgrammatiko dgrammatiko commented Nov 9, 2021

Pull Request for Issue # .

Summary of Changes

  • Modified HTMLHelper::includeRelativeFiles to accept the template as an object
  • Modified HTMLHelper::image, HTMLHelper::stylesheet and HTMLHelper::script to accept the template as an object in the options
  • Modified the getTemplate() in the apps to also have the client_id in the returned object
  • Finally use HTMLHelper::stylesheet in the tinyMCE for the editor.css (solves also the .min bug)

Testing Instructions

Apply the patch in the current 4.1
Verify that the editor.css is loading as expected

Apply #35874 and then this PR
Verify that the editor.css is loading as expected

Actual result BEFORE applying this Pull Request

Expected result AFTER applying this Pull Request

No debug:
Screenshot 2021-11-10 at 01 26 14

With debug enabled:
Screenshot 2021-11-10 at 01 27 30

Documentation Changes Required

The changes ARE B/C, nothing is breaking here. The concept of passing the template as an object to the 3 helper functions means that we don't have to replicate the existing relative loading procedure in the tinyMCE (maybe it would be helpful for other scenarios)

@bembelimen @laoneo @wilsonge could you guys review this one?

@dgrammatiko dgrammatiko force-pushed the 4.1-dev-tinyMCE-Editor-CSS branch from d47b024 to f794d99 Compare November 10, 2021 00:19
@dgrammatiko
Copy link
Contributor Author

replaced by #36011

@dgrammatiko dgrammatiko deleted the 4.1-dev-tinyMCE-Editor-CSS branch April 18, 2022 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants