Actions
Bug #101286
closedEpic #99669: CKEditor5 Collection
RTE validation broken when field is required
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2023-07-07
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
12
PHP Version:
8.2
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Hey guys,
when declaring a field in TCA as RTE and adding the option required => true
, the validation is broken:
TCA:
'content' => [
'exclude' => true,
'label' => 'LLL:EXT:my_ext/Resources/Private/Language/locallang_db_event.xlf:content.label',
'config' => [
'type' => 'text',
'enableRichtext' => true,
'required' => true,
],
],
SQL schema:
...
content text NULL DEFAULT NULL
...
When creating a new record, the field is not marked as invalid, even as it should be (because of required => true
):
After putting some content in, it gets marked as invalid. Thus the record cannot be saved:
If you need feedback, just reach out. Thanks for looking into this and fixing/support.
Files
Actions