Set Filters for Joomla! Configuration > Textfilter > Blacklist
a) Blacklist Filter Elements: p,span
b) Blacklist Filter Attributes: style
User TinyMCE as editor
Create CustomField Type "Editor"
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
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.
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!
Joomla! 3.9.11
Labels |
Added:
J3 Issue
|
Status | New | ⇒ | Confirmed |
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: ? |
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.