Bug #100838
closedEpic #99669: CKEditor5 Collection
RTE field not marked as required
100%
Description
Indicator for required field is missing, if RTE is empty.
Files
Updated by Steffen Hastädt over 1 year ago
Hi
You need to migrate your settings from eval=required to required=true.
https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/12.0/Feature-97035-UtilizeRequiredDirectlyInTCAFieldConfiguration.html
eval=required is not supported anymore.
Updated by Nikita Hovratov over 1 year ago
It is actually, the title is misleading. This is a screenshot from TYPO3 EXT:styleguide.
Updated by Christian Hackl over 1 year ago
In my case the exclamation mark is displayed, but even if i enter something (in a RTE field TCA: type=text -- enableRichtext=true) i can't save it. TYPO3 still reports that the corresponding field is empty.
Example Extension (field 'description'):
https://github.com/Hauer-Heinrich/ext_key
Updated by Jochen Roth over 1 year ago
FYI, the souce view is also missing validation.
I had a quick look and this seems to work for the editor view (not source code editing):
const sourceEditingPlugin = editor.plugins.get('SourceEditing') as SourceEditing editor.model.document.on('change:data', (): void => { if(!sourceEditingPlugin.isSourceEditingMode) { editor.updateSourceElement() } this.target.dispatchEvent(new Event('change', { bubbles: true, cancelable: true })); });
Updated by Gerrit Code Review over 1 year ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79614
Updated by Gerrit Code Review over 1 year ago
Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79776
Updated by Anonymous over 1 year ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset b4633b40c94cfc80b406c5cc5051021ed6f980b8.
Updated by Benjamin Franzke over 1 year ago
- Related to Bug #101286: RTE validation broken when field is required added