BREAKING CHANGES
-
The
ready,error, anddestroyevents can now be emitted multiple times during a component's lifetime when the watchdog is active.By default, the editor is wrapped with a watchdog that automatically restarts it after a crash. As a result, these events may fire repeatedly —
errorafter each crash,destroyfor each crashed editor, andreadyafter each successful watchdog restart — rather than only once during the component's mount/unmount lifecycle.Additionally,
destroyis no longer emitted when the component unmounts before the editor finishes initializing (it now fires only when an actual editor instance is destroyed). If your handlers relied on@destroyto detect component unmount, use Vue'sonBeforeUnmountlifecycle hook instead
Features
-
You can now listen to the new
@errorevent to catch and handle any errors that occur during editor initialization or at runtime (including errors automatically detected and reported by the Watchdog). -
Full Watchdog support has been added to the
<ckeditor>component:-
The editor is now automatically wrapped with CKEditor 5’s Watchdog (unless you explicitly pass
disableWatchdog: true). This gives you automatic crash recovery, error detection, and editor restarts without breaking your Vue component. -
New
watchdogConfigprop for the Watchdog integration. You can now pass a full configuration object to customize its behavior:
<ckeditor :watchdog-config="{ crashNumberLimit: 5, minimumTimeBetweenCrashes: 1000, // any other Watchdog options... }" ... />
-
Bug fixes
- Significantly improved stability during rapid component destruction (e.g. fast route changes, v-if toggling, or Suspense scenarios).