? Failure

User tests: Successful: Unsuccessful:

avatar bembelimen
bembelimen
19 Dec 2016

Summary of Changes

At the moment the description field of a group is a textarea. In Joomla! in general all description fields are editor fields. This PR changes the field to an editor field

Testing Instructions

Create or edit a field group.
Before: there is a textarea field
After: there is an editor field + the Joomla! text filter parameters are applied

avatar bembelimen bembelimen - open - 19 Dec 2016
avatar bembelimen bembelimen - change - 19 Dec 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 19 Dec 2016
Category Administration com_fields
avatar bembelimen bembelimen - change - 19 Dec 2016
Title
[com_fields] Change the description fieldof the group to the default editor layout
[com_fields] Change the description field of the group to the default editor layout
avatar bembelimen bembelimen - change - 19 Dec 2016
Title
[com_fields] Change the description fieldof the group to the default editor layout
[com_fields] Change the description field of the group to the default editor layout
avatar bembelimen bembelimen - edited - 19 Dec 2016
avatar Bakual
Bakual - comment - 19 Dec 2016

That's intended to be a textarea. Since the text is used in fieldset (tabs) descriptions where all tags are stripped anyway, it doesn't make sense to have a wysiwyg editor field here. It would only be confusing if you add eg an image to the description and then don't see it in the form.

avatar bembelimen
bembelimen - comment - 19 Dec 2016

We could allow HTML there?

avatar anibalsanchez
anibalsanchez - comment - 19 Dec 2016

I have tested this item successfully on 0197b1f

Test OK


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

avatar anibalsanchez anibalsanchez - test_item - 19 Dec 2016 - Tested successfully
avatar anibalsanchez
anibalsanchez - comment - 19 Dec 2016

I have tested this item ? unsuccessfully on 0197b1f

A warning blocking the Save operation:

**
Warning
Invalid field: JFIELD_RULES_LABEL**


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

avatar anibalsanchez anibalsanchez - test_item - 19 Dec 2016 - Tested unsuccessfully
avatar Bakual
Bakual - comment - 19 Dec 2016

We could allow HTML there?

We probably don't allow it for a reason ?

avatar laoneo
laoneo - comment - 20 Dec 2016

I guess when we change to an editor, then we should also allow HTML content in tabs descriptions. But as @Bakual said, there is probably a reason why the tags are stripped.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 5 Jan 2017

I have tested this item successfully on 0197b1f


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

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 5 Jan 2017 - Tested successfully
avatar anibalsanchez
anibalsanchez - comment - 5 Jan 2017

I have tested this item successfully on 0197b1f

Test OK


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

avatar anibalsanchez anibalsanchez - test_item - 5 Jan 2017 - Tested successfully
avatar Bakual
Bakual - comment - 5 Jan 2017

@joomla/cms-maintainers Needs a decision here.
Changing this to an editor doesn't change anything as long as fieldset (tab) descriptions filter any HTML tags out. So that would would need to be changed as well but I don't know why there is filtering to begin with. I just assume there was a reason for it.

avatar laoneo
laoneo - comment - 6 Jan 2017

I have tested this item ? unsuccessfully on 0197b1f

When adding HTML tags to the description trough the editor, then the tags are stripped in the edit form tabs.


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

avatar laoneo laoneo - test_item - 6 Jan 2017 - Tested unsuccessfully
avatar laoneo
laoneo - comment - 26 Jan 2017

@bembelimen any intention to fix this PR?

avatar coolcat-creations
coolcat-creations - comment - 8 Mar 2017

Would be nice to have an editor here @bembelimen


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

avatar franz-wohlkoenig franz-wohlkoenig - change - 6 Apr 2017
Status Pending Needs Review
avatar roland-d
roland-d - comment - 13 May 2017

Other than we should have an editor here. What is the added value of having an editor?

avatar franz-wohlkoenig franz-wohlkoenig - change - 14 May 2017
Status Needs Review Information Required
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 22 Jun 2017

If this PR get no Response, it will be closed at 23th July 2017.

avatar bembelimen
bembelimen - comment - 24 Jun 2017

The question is: should there be an editor field at all? As I read here, some say yes, some say no... so? If all say "yes", I can fix it.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 24 Jun 2017

asking @production Departement

avatar laoneo
laoneo - comment - 24 Jun 2017

I will go trough the git history next week to see if there is a reason why it is plain text only atm.

avatar laoneo
laoneo - comment - 27 Jun 2017

I guess we can't change it because the description gets translated first and then escaped. This would lead to a situation that the HTML code will be shown as output. Relevant line is here https://github.com/joomla/joomla-cms/blob/staging/layouts/joomla/edit/params.php#L119. I wen't back in history and this code exists over 4 years like that. So it would probably lead to a BC break when we stop escaping the output. It's a minor one but it will be one at the end. @Bakual what do you think?

avatar Bakual
Bakual - comment - 27 Jun 2017

Personally I don't see a reason to add HTML to the fieldset description.
In the end I think we end up with more issues if we allow it.

avatar franz-wohlkoenig franz-wohlkoenig - change - 23 Jul 2017
Status Information Required Closed
Closed_Date 0000-00-00 00:00:00 2017-07-23 08:34:38
Closed_By franz-wohlkoenig
avatar joomla-cms-bot
joomla-cms-bot - comment - 23 Jul 2017
avatar joomla-cms-bot joomla-cms-bot - close - 23 Jul 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 23 Jul 2017

closed as stated above.


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

Add a Comment

Login with GitHub to post a comment