@ckeditor/ckeditor5-angular
Version:
Official Angular component for CKEditor 5 – the best browser-based rich text editor.
48 lines (47 loc) • 1.52 kB
TypeScript
/**
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/
import type { Editor, EditorConfig, EditorWatchdogCreatorFunction, WatchdogConfig } from 'ckeditor5';
/**
* A dummy watchdog class is used when the watchdog is disabled.
*
* It provides a compatible API but does not perform any monitoring or restarting.
*/
export declare class DisabledEditorWatchdog<TEditor extends Editor = Editor> {
/**
* The editor instance.
*/
editor: TEditor | null;
/**
* The creator function.
*/
private _creator?;
/**
* The destructor function.
*/
private _destructor?;
constructor(_editorConstructor: {
create(sourceElementOrData: HTMLElement | string, config?: EditorConfig): Promise<TEditor>;
}, _config?: WatchdogConfig);
/**
* Sets the creator function.
*/
setCreator(creator: EditorWatchdogCreatorFunction<TEditor>): void;
/**
* Sets the destructor function.
*/
setDestructor(destructor: (editor: TEditor) => Promise<void>): void;
/**
* A dummy implementation of the `on` method.
*/
on(_event: string, _callback: (...args: Array<any>) => void): void;
/**
* Creates the editor instance.
*/
create(elementOrData: HTMLElement | string, config?: EditorConfig): Promise<void>;
/**
* Destroys the editor instance.
*/
destroy(): Promise<void>;
}