Open Carry3 opened 1 year ago
Same issue, font customization functionality works but type needs to be added.
@PetraPluto @Carry3 please try the packagebrunolemos-react-email-editor
and let me know if it works well for you.
export interface Font { family: string; name: string; url?: string; previews?: string[]; }
export interface UnlayerOptions { id?: string; displayMode?: DisplayMode; projectId?: number; locale?: string; appearance?: AppearanceConfig; user?: User; mergeTags?: MergeTag[]; specialLinks?: SpecialLink[]; designTags?: StringList; designTagsConfig?: DesignTagConfig; tools?: ToolsConfig; blocks?: object[]; editor?: EditorConfig; safeHtml?: boolean; customJS?: string[]; customCSS?: string[]; features?: Features; translations?: Translations; displayConditions?: DisplayCondition[]; fonts?: Font[]; // Add the 'fonts' property here }
export interface UnlayerOptions { id?: string | undefined; displayMode?: DisplayMode | undefined; projectId?: number | undefined; locale?: string | undefined; appearance?: AppearanceConfig | undefined; user?: User | undefined; mergeTags?: MergeTag[] | undefined; specialLinks?: SpecialLink[] | undefined; designTags?: StringList | undefined; designTagsConfig?: DesignTagConfig | undefined; tools?: ToolsConfig | undefined; blocks?: object[] | undefined; editor?: EditorConfig | undefined; safeHtml?: boolean | undefined; customJS?: string[] | undefined; customCSS?: string[] | undefined; features?: Features | undefined; translations?: Translations | undefined; displayConditions?: DisplayCondition[] | undefined; } UnlayerOptions didn't have fonts. and it wrong when I add fonts in options.I use typescript