The convert command doesn't find Redactor fields in super table fields nested in matrix fields
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start at the php craft ckeditor/convert command and inspect the generated YAML under config/project/superTableBlockTypes/ for nested fields. Compare the resulting backend field state before and after php craft project-config/apply --force; done means the command applies the conversion without requiring that workaround.
Written by the indexing model from the issue text.
Description
Description
I just noticed that Redactor fields inside Super Table fields inside Matrix fields are not converted by the ckeditor/convert command. Looks like the command can't find those fields, because they don't show up in the output of the command at all. Regular Super Table fields (not nested inside Matrix fields) work fine.
Edit: I was wrong, the nested fields do show up and they are even converted correctly in the config/project/ folder. However, the changed config is not applied to the database for some reason, so the field still shows up as a Redactor field in the field settings. Running php craft project-config/apply --force fixes this, after that the field correctly shows up as a CKEditor field.
Can this be fixed inside the command? Or is this a Super Table issue?
In the meantime, it would probably be a good idea to add a note regarding this issue and the workaround to the README.
Steps to reproduce
- Install the Super Table plugin.
- Create a matrix field and add a new block type. Inside the block type, add a Super Table field. Inside the Super Table field, add a Redactor field.
- Run
php craft ckeditor/convert. The YAML file insideconfig/project/superTableBlockTypes/will be updated correctly. But the field will still show up as a Redactor field in the field settings in the backend. - Run
php craft project-config/apply --force. Now the field settings in the backend should correctly show the field as a CKEditor field.
Additional info
- Craft version: 4.4.13
- PHP version: 8.2
- Database driver & version: MySQL 8.0.32
- Plugins & versions: CK Editor 3.4.0
- Dominant language
- PHP
- Stars
- 47
- Forks
- 32
- Avg merge
- 3d 20h
- Merged PRs (30d)
- 3
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from craftcms/ckeditor
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
[5.x]: InvalidSubpathException when Default Upload Location uses an object template like {slug}Possibly taken @i-just claimed this 7 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
Image Editor reload appends stacking cache timestamp and doesn't reflect edits behind a CDNMay be free again @i-just claimed this 107 days ago, and no pull request is open. Openbug
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 55/100
All issues in craftcms/ckeditor
Similar issues
-
sync-en
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 2 days
-
UX
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ProfessionalWiki/NeoWiki#1573 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100