Skip to content

makes #555 less aggressive#583

Merged
brandonkelly merged 3 commits into
5.xfrom
bugfix/580-copy-value-from-site
May 13, 2026
Merged

makes #555 less aggressive#583
brandonkelly merged 3 commits into
5.xfrom
bugfix/580-copy-value-from-site

Conversation

@i-just
Copy link
Copy Markdown
Contributor

@i-just i-just commented May 13, 2026

Description

PR #555 fixed an issue where CKEditor fields with list items would get marked as dirty before any changes were actually made to them. In order to achieve that, the Element Editor’s form observer was paused before the initial call to updateSourceElement().

That change was a bit too aggressive and caused the “Copy value from site” functionality to not fully work as expected. That functionality replaces the entire field’s DOM and re-initialises the CKEditor field, so the field’s create() method is called again, and the content copied from the other site was treated as an initial value. (This, in turn, caused the field to not be marked as dirty and the updated content was not saved.)

Related issues

#580

@i-just i-just requested a review from brandonkelly as a code owner May 13, 2026 12:43
@brandonkelly brandonkelly merged commit 9665d55 into 5.x May 13, 2026
2 checks passed
@brandonkelly brandonkelly deleted the bugfix/580-copy-value-from-site branch May 13, 2026 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants