Project

General

Profile

Actions

Bug #88014

closed

enableRichText fields boot up with HTML Tags even if the editor is disabled

Added by Paul Beck over 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2019-03-26
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
rte,ckeditor
Complexity:
Is Regression:
Sprint Focus:

Description

I've got an issue with TYPO3 8 and 9 LTS.
If there a textfields in TCA which have enableRichText enabled, those fields always boot up with HTML markups around the text.
Example: I enter "Test" to a field and save it, the record will reload with "<p>Test</p>".
I think this behavior is bad if the Richtext-Editor is disabled in the user settings or by Page TSConfig.

Actions #1

Updated by Susanne Moog over 5 years ago

  • Status changed from New to Needs Feedback

Hey,

thanks for the report. When disabling the RTE did you also adjust the configuration? The p tags are coming from the default configuration iirc that is built with an enabled RTE in mind. If you want to disable it (either fully or partially), you should probably adjust the configuration for that use case. Keep in mind, that even though you disable the RTE for a single user or on demand, the frontend will still expect to get "RTE style" content if you do not change the rendering. If you simply want input fields without any transformations done, you should remove all related parsefuncs and htmlspecialchar the result to avoid XSS.

Actions #2

Updated by Paul Beck over 5 years ago

The problem is existing in the backend. The <p>-Tags are already created in the backend textfield.

Actions #3

Updated by Susanne Moog over 5 years ago

The <p> tags are generated by RTE transformation from DB to RTE field when transformation mode is set to css_transform - see https://docs.typo3.org/typo3cms/TSconfigReference/PageTsconfig/Rte.html#overrulemode for how to configure / override mode for your use case.

Maybe it would help if you'd additionally describe your full use case.

Actions #4

Updated by Benni Mack over 4 years ago

  • Status changed from Needs Feedback to Closed

Yes. the issue relies in the transformation and not in actually rendering the RTE itself. The behaviour is correct. I will close this issue now due to lack of feedback. Let me know if you feel different then I will re-open the issue.

Actions

Also available in: Atom PDF