User tests: Successful: Unsuccessful:
Pull Request for Issue #36571 .
Joomla TimyMCE editor instances should be identified by full-featured ID but not by JForm field name
attribute, otherwise fields with the same name use the single editor instance.
Joomla 4 is also affected, not sure if this patch will go into 4.0-dev, somebody please advise.
If a form has multiple editor fields with the same name but within different groups, all XTD button actions are applied in first editor only.
I.e. in item has top-level field <field name="description" type="editor"...
+ a field with the same name
but inside the another group like <fields name="params"> <field name="description" type="editor"...
If you click any XTD buttons in the editor field of params
group, all actions are actually applied in the first field.
I.e. Readmore is inserted in the first field etc.
Test:
Edit admin article.xml form of com_content and add these code after <fieldset name="basic" ...
line:
<field
name="articletext"
type="editor"
label="COM_CONTENT_FIELD_ARTICLETEXT_LABEL"
description="COM_CONTENT_FIELD_ARTICLETEXT_DESC"
filter="JComponentHelper::filterText"
buttons="true"
/>
Now we have two fields with the name articletext
, the first one is original article text in Content tab, the second one is displayed in Options tab and has the field group attribs
, these are two different fields even with the same name
attribute.
Try to use any buttons in this second field, see that actually all actions are applied in the main editor field displayed in Content tab.
Button actions are executed on first field only.
Button actions should be executed separately for each editor instance.
No.
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries External Library Composer Change JavaScript Front End Plugins |
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-01-06 07:28:27 |
Closed_By | ⇒ | Denitz | |
Labels |
Added:
Composer Dependency Changed
?
|