craftcms / craftcms/ckeditor

[4.x] - Nested CKEditor fields deleting content and functionality not working

Open
#276 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
PHP
Stars
47
Forks
32
PR merge metrics
No merged PRs in 30d

Description

Description

I have a nested matrix field which contains a CKEditor field, there are some instances where I am not able to paste content into the field or click the Source button, refreshing the page allows me to sometimes solve the Source button issue and paste content via the source
Additionally it is not possible to add a link either.

Upon saving, sometimes the all content is removed from the field.

Steps to reproduce
  1. Create a matrix field
  2. Add a nested matrix field with a CKEditor field within it
Additional info
  • Craft version: 5.2.9
  • PHP version: 8.3
  • Database driver & version: MySQL 8
  • Plugins & versions: CKEditor 4.1.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the nested matrix and CKEditor setup using Craft 5.2.9, PHP 8.3, MySQL 8, and CKEditor 4.1.0. Check whether paste, Source, and link actions work consistently and whether content remains after saving; done means all listed actions work and content is retained.

Written by the indexing model from the issue text.

Assessment

Tech stack
mysql, php
Domain
full-stack
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.