? Pending

User tests: Successful: Unsuccessful:

avatar dgrammatiko
dgrammatiko
9 Nov 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?

avatar dgrammatiko dgrammatiko - open - 9 Nov 2021
avatar dgrammatiko dgrammatiko - change - 9 Nov 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 9 Nov 2021
Category Libraries Front End Plugins
avatar dgrammatiko dgrammatiko - change - 9 Nov 2021
Labels Added: ?
avatar dgrammatiko dgrammatiko - change - 10 Nov 2021
The description was changed
avatar dgrammatiko dgrammatiko - edited - 10 Nov 2021
avatar dgrammatiko
dgrammatiko - comment - 11 Nov 2021

replaced by #36011

avatar dgrammatiko dgrammatiko - close - 11 Nov 2021
avatar dgrammatiko dgrammatiko - change - 11 Nov 2021
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2021-11-11 16:59:52
Closed_By dgrammatiko

Add a Comment

Login with GitHub to post a comment