1. Open DevTools on Chrome.
  2. Go to Memory tab.
  3. Select "Heap snapshot" profiling type.
  4. Click "Collect Garbage" (trash icon) and "Clear all profiles" (don't go icon).
  5. Take heap snapshot (record icon).
  6. Repeat multiple times:
    • click "Init editor",
    • wait to editor show up ,
    • click "Destroy editor".
  7. Record heap snapshot again.
  8. Compare Snapshot 1 with Snapshot 2 and look for:
    • "detached" - HTML Elements/DOM nodes
    • "EventListener" - there should be only 1
    • Any CKEditor5 classes instances like "Editor" or "LivePosition"

Notes:

Hello world!

This is an editor instance.