No Code Attached Yet J3 Issue
avatar BPBlueprint
BPBlueprint
6 Sep 2019

Steps to reproduce the issue

  1. Set Filters for Joomla! Configuration > Textfilter > Blacklist
    a) Blacklist Filter Elements: p,span
    b) Blacklist Filter Attributes: style

  2. User TinyMCE as editor

  3. Create CustomField Type "Editor"

  4. Fill this text/code into an article:

    This is my text.

    a) into the usual Joomla!-article-content-Editor-Field
    b) into our created CustomField-Editor-Field

    SAFE the article

Expected result

After saving the article we expect the code to be filtered on both Joomla!-article-content-field and CustomField-Editor-Field

Code should look like that:
This is my text.

Actual result

Code is filtered correctly at Joomla!-article-content-Editor-Field
Code isn´t filtered correctly in CustomField-Editor-Field

No matter which plugin-filter-settings I use at!

System information (as much as possible)

Joomla! 3.9.11

Additional comments

avatar BPBlueprint BPBlueprint - open - 6 Sep 2019
avatar joomla-cms-bot joomla-cms-bot - labeled - 6 Sep 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 6 Sep 2019
Labels Added: J3 Issue
avatar franz-wohlkoenig franz-wohlkoenig - labeled - 6 Sep 2019
avatar zero-24
zero-24 - comment - 6 Sep 2019

Ok i can reproduce the problem. The problem is that there seams to be no initial value for the global options.

As a workaround i would suggest to go to the Fields - Editor Plugin, change nothing and just hit save. Another workaround could be to set the filter option in the field itself to "Text".

@laoneo @mbabker @HLeithner Do you have any suggestions on how to deal with that kind of issues?

As of now we don't set the initial values to the DB: https://github.com/joomla/joomla-cms/blob/staging/installation/sql/mysql/joomla.sql#L640

Here:
https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_fields/libraries/fieldsplugin.php#L180-L185

We loop over the params and the use global option only works for sure in case we have an global value in the database.

So is the only fix to ship with that default values in the database or did i have overread something?

On a quick look this also does not seam to be limited to editor but should affect all fields that depend on use default from plugin settings or any default value that is set in the plugin but not saved yet.

avatar franz-wohlkoenig franz-wohlkoenig - change - 6 Sep 2019
Status New Confirmed
avatar brianteeman
brianteeman - comment - 27 Aug 2022

Thank you for raising this issue.

Joomla 3 is now in security only mode with no further bug fixes or new features.

This issue is still present in joomla 4 and I have created a pull request for it #38617
cc @zero-24

avatar alikon alikon - change - 28 Aug 2022
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2022-08-28 04:58:38
Closed_By alikon
Labels Added: No Code Attached Yet
Removed: ?
avatar alikon alikon - close - 28 Aug 2022

Add a Comment

Login with GitHub to post a comment