Current section

Files

Jump to
ckeditor5_phoenix dist test-utils editor create-editor-html-element.d.ts
Raw

dist/test-utils/editor/create-editor-html-element.d.ts

import { EditorPreset } from '../../src/hooks/editor/typings';
/**
* Creates a CKEditor HTML structure for testing.
*/
export declare function createEditorHtmlElement({ id, preset, initialValue, editableHeight, withInput, changeEvent, focusEvent, blurEvent, watchdog, saveDebounceMs, language, hookAttrs, }?: EditorCreatorAttrs): HTMLDivElement;
/**
* Attributes for creating an editor HTML element.
*/
type EditorCreatorAttrs = {
id?: string;
preset?: EditorPreset;
initialValue?: string | null;
editableHeight?: number | null;
withInput?: boolean;
focusEvent?: boolean;
blurEvent?: boolean;
changeEvent?: boolean;
watchdog?: boolean;
saveDebounceMs?: number;
hookAttrs?: Record<string, string>;
language?: {
ui?: string;
content?: string;
};
};
export {};
//# sourceMappingURL=create-editor-html-element.d.ts.map