@yoopta/editor
Version:
<h2 align="center">Yoopta-Editor v1 🎉</h2> <p align="center">Yoopta-Editor - is an open source notion-like editor 💥</p> <div align="center"> <img width="574" alt="Screen Shot 2023-01-25 at 16 04 29" src="https://user-images.githubusercontent.com/2909311
36 lines • 925 B
TypeScript
import { YooEditor, YooptaContentValue } from '../editor/types';
type StyleElement = {
id?: string;
content: string;
};
type MetaElement = {
content?: string;
name?: string;
'http-equiv'?: string;
property?: string;
charset?: string;
};
type StyleAttribute = {
[key: string]: string | number;
};
type ElementAttributes = {
style?: StyleAttribute;
[key: string]: any;
};
export type EmailTemplateOptions = {
head?: {
styles?: StyleElement[];
meta?: MetaElement[];
title?: string;
};
body?: {
attrs?: ElementAttributes;
};
container?: {
attrs?: ElementAttributes;
};
customTemplate?: (content: string) => string;
};
export declare function getEmail(editor: YooEditor, content: YooptaContentValue, opts?: EmailTemplateOptions): string;
export {};
//# sourceMappingURL=getEmail.d.ts.map