Skip to content

Duplicated editors after crash with watchdog #601

@FilipTokarski

Description

@FilipTokarski

Steps to reproduce:

  1. Download React integration from the builder
  2. Expose editor instance in window:
onReady={ editor => {
    window.editor = editor;
} }
  1. Run the app
  2. Open console and execute code to trigger error:
const root = editor.model.document.getRoot();

editor.model.change( writer => {
    const invalidElement = writer.createElement( 'invalid' );
    writer.append( invalidElement, root );
} );

Result

Editor crashes as expected. Now if you try typing something and click on the toolbar, another editor instance shows up. Also, if you keep clicking on it, it duplicates content on each click.

On some reports from customers the duplicated editor shows up immediately, without the need to type or click. However I was not able to reproduce it this way.

Screencast

Screen.Recording.2025-06-13.at.12.29.09.mov

Other info

Tested on:

  • CKEditor v 45.2.0
  • React integration v 9.5.0
  • React integration v 10.0.0-alpha.0
  • If you set disableWatchdog={true} then there are no duplicated editors

Metadata

Metadata

Assignees

Labels

squad:coreIssue to be handled by the Core team.support:2An issue reported by a commercially licensed client.type:bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions