User tests: Successful: Unsuccessful:
Pull Request for Issue #43128 .
Fix compatibility with legacy editor-xtd plugins, which return multiple buttons.
Edit
And replace whole method with:
public function onDisplay($name)
{
  return [
    new CMSObject([
        'action'  => 'insert',
        'icon'    => 'foobar',
        'text'    => 'Beer',
        'options' => ['content' => '? ']
    ]),
    new CMSObject([
        'action'  => 'insert',
        'icon'    => 'foobar',
        'text'    => 'Cat',
        'options' => ['content' => '? ']
    ]),
  ];
}Go to content editing. And check for this button.
Only Cat button is shown.
Both buttons is shown.
Please select:
| Status | New | ⇒ | Pending | 
| Category | ⇒ | Libraries | 
 
                 
                I have tested this item ✅ successfully on 07ebef5
| Status | Pending | ⇒ | Ready to Commit | 
| Labels | Added: 
bug
PR-5.0-dev | ||
 
                RTC
 
                This pull request has been automatically rebased to 5.1-dev.
| Title | 
 | ||||||
| Labels | Added: 
RTC
PR-5.1-dev | ||
| Status | Ready to Commit | ⇒ | Fixed in Code Base | 
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-05-11 13:15:47 | 
| Closed_By | ⇒ | LadySolveig | 
 
                Thank you @Fedik and for testing @Tazzios and @viocassel
I have tested this item ✅ successfully on 07ebef5
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43129.