UNPKG

ngx-editor

Version:

The Rich Text Editor for Angular, Built on ProseMirror

12 lines (11 loc) 503 B
import { Schema, Node as ProseMirrorNode } from 'prosemirror-model'; import { HTML } from './trustedTypesUtil'; export declare const emptyDoc: { type: string; content: { type: string; }[]; }; export declare const toHTML: (json: Record<string, any>, inputSchema?: Schema) => string; export declare const toDoc: (html: HTML, inputSchema?: Schema) => Record<string, any>; export declare const parseContent: (value: HTML | Record<string, any> | null, schema: Schema) => ProseMirrorNode;