craftcms / craftcms/ckeditor

Cloning field entries causes duplicate ckeditor fields

Open
#586 6 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

When cloning existing fields in craft using ckeditor creates duplicate ckeditor field entries

Steps to reproduce
  1. clone existing block in field using ckeditor
  2. see duplicate ckeditor fields render
  3. saving entry removes duplicates
Additional info
  • Craft version: 5.9.22
  • PHP version: 8.2.17
  • Database driver & version: MySQL 27.1
  • Plugins & versions: 5.5.0
Image

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

Reproduce the issue in Craft 5.9.22 with PHP 8.2.17, MySQL 27.1, and CKEditor plugin 5.5.0 by cloning an existing block that uses CKEditor. Confirm that duplicate CKEditor fields render before saving and disappear after saving; trace the cloning path to identify where the duplicate entries are created, then add coverage for the reproduction.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.