Project

General

Profile

Actions

Bug #100838

closed

Epic #99669: CKEditor5 Collection

RTE field not marked as required

Added by Nikita Hovratov 11 months ago. Updated 7 months ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2023-05-08
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Indicator for required field is missing, if RTE is empty.


Files

rte-required.png (16.6 KB) rte-required.png Nikita Hovratov, 2023-05-08 17:57

Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Bug #101286: RTE validation broken when field is requiredNew2023-07-07

Actions
Actions #1

Updated by Steffen Hastädt 10 months 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.

Actions #2

Updated by Nikita Hovratov 10 months ago

It is actually, the title is misleading. This is a screenshot from TYPO3 EXT:styleguide.

Actions #3

Updated by Christian Hackl 10 months 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

Actions #4

Updated by Jochen Roth 9 months 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 }));
            });
Actions #5

Updated by Gerrit Code Review 9 months 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

Actions #6

Updated by Gerrit Code Review 9 months 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

Actions #7

Updated by Anonymous 9 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #8

Updated by Benjamin Franzke 7 months ago

  • Parent task set to #99669
Actions #9

Updated by Benjamin Franzke 7 months ago

  • Related to Bug #101286: RTE validation broken when field is required added
Actions

Also available in: Atom PDF