Skip to content

[5.0] Do not force old XTD buttons to use new modal#41633

Merged
HLeithner merged 3 commits intojoomla:5.0-devfrom
Fedik:editor-xtd-not-force-modal
Sep 17, 2023
Merged

[5.0] Do not force old XTD buttons to use new modal#41633
HLeithner merged 3 commits intojoomla:5.0-devfrom
Fedik:editor-xtd-not-force-modal

Conversation

@Fedik
Copy link
Copy Markdown
Member

@Fedik Fedik commented Sep 7, 2023

Summary of Changes

In #40202 was added code that allows to show old XTD buttons in new Dialog, when $button->modal = true.
Hovewer this does not work good.
I removing this part here.
Now a new modal will work only when button explicitly set $button->action = 'modal'.

Testing Instructions

Edit Contact XTD button


Change to:

$button->modal = true;

Go to article ediiting and click this button.

Actual result BEFORE applying this Pull Request

You get a new Dialog modal

Expected result AFTER applying this Pull Request

You get BS modal.

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

Reference:

@Fedik Fedik added Release Blocker bug b/c break This item changes the behavior in an incompatible why. HEADS UP labels Sep 7, 2023
@Ruud68
Copy link
Copy Markdown
Contributor

Ruud68 commented Sep 7, 2023

Works! but please note this: #40202 (comment)

@ceford
Copy link
Copy Markdown
Contributor

ceford commented Sep 7, 2023

I have tested this item ✅ successfully on be649dc

For clarity for other testers: in Article Edit it is the CMS Content / Contact button to be selected.

I see the slight difference in appearance of the two layouts and the different implementation. Both work fine in selecting a Contact to insert into an article.


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

 Conflicts:
	plugins/editors/tinymce/src/PluginTraits/XTDButtons.php
@HLeithner HLeithner merged commit 05b7573 into joomla:5.0-dev Sep 17, 2023
@HLeithner
Copy link
Copy Markdown
Member

Works! but please note this: #40202 (comment)

@Ruud68 thanks for your comment I answered it in the issue maybe not the ideal solution for you but hard to solve all issues without resources.

thanks @Fedik and testers

@Fedik Fedik deleted the editor-xtd-not-force-modal branch September 17, 2023 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

b/c break This item changes the behavior in an incompatible why. HEADS UP bug Unit/System Tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants