@ckeditor/ckeditor5-vue
Version:
Official Vue.js 3+ component for CKEditor 5 – the best browser-based rich text editor.
19 lines (18 loc) • 904 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 ComputedRef, type MaybeRefOrGetter } from 'vue';
import type { EditorRelaxedConfig } from '@ckeditor/ckeditor5-integrations-common';
import type { EditorWithWatchdogRelaxedConstructor } from '../types.js';
import type { EditorElementDefinition } from '../utils/normalizeEditorElementDefinition.js';
/**
* Picks editor element definition from config if provided.
*/
export declare function useEditorElementDefinition({ Editor, config, defaultElementName }: Options): ComputedRef<EditorElementDefinition>;
type Options = {
Editor: MaybeRefOrGetter<EditorWithWatchdogRelaxedConstructor>;
config: MaybeRefOrGetter<EditorRelaxedConfig>;
defaultElementName: MaybeRefOrGetter<string>;
};
export {};