@formkl/editor
Version:
A universal Editor for Formkl using web component API
17 lines (14 loc) • 486 B
TypeScript
import { EditorViewConfig } from '@codemirror/view';
type EditorOptions = EditorViewConfig & {
dark?: boolean;
theme?: {
[selector: string]: {
[propOrSelector: string]: string | number | null;
};
};
};
declare const createEditor: (options?: EditorOptions) => CustomElementConstructor;
declare const _default: {
createEditor: (options?: EditorOptions) => CustomElementConstructor;
};
export { createEditor, _default as default };