Skip to content

Use key prop for editor#1

Merged
Simply007 merged 1 commit intomainfrom
fix/editor-identification
Dec 4, 2025
Merged

Use key prop for editor#1
Simply007 merged 1 commit intomainfrom
fix/editor-identification

Conversation

@Simply007
Copy link
Collaborator

@Simply007 Simply007 commented Dec 4, 2025

Motivation

Use key since React might reuse the components with the same key

Checklist

  • Code follows coding conventions held in this repo
  • Automated tests have been added
  • Tests are passing
  • Docs have been updated (if applicable)
  • Temporary settings (e.g. variables used during development and testing) have been reverted to defaults

How to test

Open the app and when changing the nodes in the left the content in CKEditor should be properly loaded.

@Simply007 Simply007 requested a review from Copilot December 4, 2025 14:58
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a React rendering issue by replacing the id prop with the correct key prop for the CKEditor component, ensuring proper component re-mounting when content changes.

Key Changes:

  • Changed the id prop to key prop on the CKEditor component to enable React to properly differentiate between instances

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Simply007 Simply007 merged commit 7dee65d into main Dec 4, 2025
1 check passed
@Simply007 Simply007 deleted the fix/editor-identification branch December 4, 2025 14:59
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.

1 participant

Comments