Skip to content

Commit 7dee65d

Browse files
authored
Merge pull request #1 from ckeditor/fix/editor-identification
Use key prop for editor
2 parents 280a295 + ed39792 commit 7dee65d

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

package-lock.json

Lines changed: 14 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/ContentField.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ export default function ContentField({
485485
Array.from(editorMenuBarRef.current.children).forEach(child => child.remove());
486486
}}
487487
// ✏️ ADDED IDENTIFICATION FOR PROPER RELOADING
488-
id={contentKey}
488+
key={contentKey}
489489
editor={DecoupledEditor}
490490
config={editorConfig}
491491
// ✏️ ADDED INITIAL DATA FROM PROP

0 commit comments

Comments
 (0)