?
avatar xjdfhbv
xjdfhbv
15 Feb 2021

Steps to reproduce the issue

Add an editor field to the default.xml for any existing menu item of any core or other component, then try to create a new menu item using the modified form.

e.g. Open /components/com_content/tmpl/article/default.xml and somewhere in the Basic options fieldset, add:

<field name="xxx" type="editor" label="xxx" buttons="true" hide="readmore,pagebreak" />

You must include the "buttons" or "hide" attributes for the problem to occur.

Now try to create a new menu item of type Articles, Single Article, and go to the Options tab. The toolbar buttons no longer function.

Expected result

Should see the new editor field and the toolbar buttons should work.

Actual result

Toolbar buttons are dead. Cannot save or cancel.

System information (as much as possible)

Joomla! 4.0.0-beta7

Additional comments

Without the "buttons" or "hide" attributes, the problem does not occur.

avatar xjdfhbv xjdfhbv - open - 15 Feb 2021
avatar joomla-cms-bot joomla-cms-bot - labeled - 15 Feb 2021
avatar drmenzelit
drmenzelit - comment - 17 Feb 2021

I don't know the use case for such a field, but I can confirm the weird behaviour: buttons and / or hide lead to the inclusion of some elements with modal classes, which interfere with the view, fields and buttons are not clickable anymore.

avatar xjdfhbv
xjdfhbv - comment - 17 Feb 2021

There are many third party components that allow the addition of text as part of a menu item. This needs to be fixed.

avatar brianteeman
brianteeman - comment - 17 Feb 2021

There are many third party components that allow the addition of text as part of a menu item. This needs to be fixed.

Can you give an example so that it makes testing easier please.

avatar xjdfhbv
xjdfhbv - comment - 17 Feb 2021

Here's one of mine:
https://extensions.joomla.org/extension/vertical-markets/booking-a-reservations/rentalot/
Just install it and try to create a menu item of type Rentalot, Classic Availability Page. As soon as you go to the Options tab, the toolbar buttons die.

avatar joomdonation
joomdonation - comment - 21 Feb 2021

Tried again with today nightly build and the issue is gone. @xjdfhbv could you please try again?

avatar xjdfhbv
xjdfhbv - comment - 21 Feb 2021

Yes I confirm that this problem is gone in beta 8 today. Thank you very much. This can be closed.

avatar alikon alikon - change - 21 Feb 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-02-21 07:40:14
Closed_By alikon
avatar alikon alikon - close - 21 Feb 2021

Add a Comment

Login with GitHub to post a comment