Repository navigation
v12.0.0-alpha.0
Pre-releaseBREAKING CHANGES
-
The Watchdog is gone, and with it the automatic restart of a crashed editor. An editor that crashes now stays as it is, with its content and its undo history, instead of being rebuilt from the data it had before. The
erroroutput still reports what happened.-
CKEditor 5 in version 49 or higher is now required. That is where the error reporting this integration uses appears. The declared peer dependency and the runtime version check were raised to match.
-
The
watchdog,editorWatchdogConfiganddisableWatchdoginputs were removed from<ckeditor>. There is no watchdog left to pass, configure or disable. -
If you passed a
ContextWatchdogthrough thewatchdoginput to share a context between editors, create theContextyourself and pass it in the editor configuration instead:const context = await AngularEditor.Context.create( contextConfig ); // Then, in the template: <ckeditor [editor]="Editor" [config]="config"> config = { context };
The context is yours now, so destroy it when you are done with it —
ContextWatchdogused to own that. -
The
erroroutput now carries the error itself. A runtime crash used to arrive either asnull, which is what the watchdog passed where anEventInfowould otherwise go, or asundefinedwhen the editor was an item of aContextWatchdog. It is now theCKEditorErrorthat escaped. Handlers written against the old shape need updating. -
An error attributed to a
Contextrather than to a single editor is not emitted by this component, which reports only what belongs to its own editor. If you share a context and want those, register your own callback withEditor.onEditorError(). -
The
DisabledEditorWatchdogclass was removed. It existed only to stand in for a watchdog whendisableWatchdogwas set, which is now the only behaviour. -
The
editorinput no longer requires the editor class to expose a staticEditorWatchdog, and requires a staticonEditorErrorinstead — every editor class has one.
Integrators who relied on the restart should handle the
erroroutput themselves — reload the editor, tell the user, or report to their error tracker. -
Features
- The stylesheets loaded by
loadCKEditorCloud()can now be injected into a shadow root instead ofdocument.head, so the editor styles stay scoped to a component rather than leaking into the page. Pass the root astargetNodeof theinjectedStylesheetsLocationoption.