UNPKG

@rickx/ckeditor5-line-height

Version:
16 lines (15 loc) 631 B
import type { AttributeDescriptor } from 'ckeditor5'; import type { LineHeightOption } from './lineheightconfig.js'; /** * The name of the lineHeight plugin. */ export declare const LINE_HEIGHT = "lineHeight"; export declare function normalizeOptions(configuredOptions: (string | number | LineHeightOption)[]): LineHeightOption[]; export declare function buildDefinition(modelAttributeKey: string, options: LineHeightOption[]): LineHeightConverterDefinition; export interface LineHeightConverterDefinition { model: { key: string; values: Array<string>; }; view: Record<string, AttributeDescriptor>; }