@ckeditor/ckeditor5-vue
Version:
Official Vue.js 3+ component for CKEditor 5 – the best browser-based rich text editor.
17 lines (16 loc) • 755 B
TypeScript
/**
* @license Copyright (c) 2003-2026, 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, EventInfo } from 'ckeditor5';
import { type Ref, type EmitFn } from 'vue';
/**
* Hook that watches editor lifecycle events and maps them to Vue event emitters.
*/
export declare function useEditorLifecycleEvents<TEditor extends Editor>(instance: Ref<TEditor | undefined>, emit: EmitFn<EditorLifecycleEvents<TEditor>>): void;
export type EditorLifecycleEvents<TEditor extends Editor> = {
ready: [editor: TEditor];
destroy: [editor: TEditor];
blur: [event: EventInfo, editor: TEditor];
focus: [event: EventInfo, editor: TEditor];
};