? ? Pending

User tests: Successful: Unsuccessful:

avatar OctavianC
OctavianC
23 Nov 2022

Pull Request for Issue #39277 .

Summary of Changes

Noticed that TinyMCE works because it adds a prefix to the ID of the button: https://github.com/joomla/joomla-cms/blob/4.2-dev/plugins/editors/tinymce/src/PluginTraits/XTDButtons.php#L69
So I've globally added the same prefix (the editor ID) to the button modal's ID. This way, Bootstrap::renderModal() will always add the HTML on the page when multiple editors are used.

Testing Instructions

See #39277
TLDR: have multiple tabs, an editor on the first tab, a separate editor on the second tab. Second editor buttons (editors-xtd) don't work because first tab is hidden and holds the modal.

Actual result BEFORE applying this Pull Request

Overlay shows, but no modal (it's hidden by the first tab, where it's located):
image

Expected result AFTER applying this Pull Request

Works:
image

Please test with 3rd party editors and editor buttons in case I've broken something, I've only tested with default Joomla! extensions.

avatar OctavianC OctavianC - open - 23 Nov 2022
avatar OctavianC OctavianC - change - 23 Nov 2022
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 23 Nov 2022
Category Layout Libraries
avatar brianteeman brianteeman - test_item - 23 Nov 2022 - Tested successfully
avatar brianteeman
brianteeman - comment - 23 Nov 2022

I have tested this item successfully on 6e062c2


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

avatar viocassel viocassel - test_item - 23 Nov 2022 - Tested successfully
avatar viocassel
viocassel - comment - 23 Nov 2022

I have tested this item successfully on 6e062c2


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

avatar Quy Quy - change - 23 Nov 2022
Status Pending Ready to Commit
Labels Added: ?
avatar Quy
Quy - comment - 23 Nov 2022

RTC


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

avatar laoneo
laoneo - comment - 24 Nov 2022

@Fedik or @dgrammatiko can one of you guys approve this?

avatar OctavianC OctavianC - change - 24 Nov 2022
Labels Added: ?
avatar fancyFranci fancyFranci - change - 29 Nov 2022
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2022-11-29 22:25:48
Closed_By fancyFranci
avatar fancyFranci fancyFranci - close - 29 Nov 2022
avatar fancyFranci fancyFranci - merge - 29 Nov 2022
avatar fancyFranci
fancyFranci - comment - 29 Nov 2022

Thanks a lot for fixing this! :)

Add a Comment

Login with GitHub to post a comment