Open amartya-dev opened 3 years ago
@amartya-dev Did you figure out something? I have the same issue.
@talovicnedim nope, I am thinking of moving away from this
@amartya-dev @talovicnedim
Can you try to set projectId
property of EmailEditor
to some number? I don't know why but if projectId is not defined fonts are broken.
@amartya-dev here is the solution for fonts
<EmailEditor
ref={emailEditorRef}
exportHtml={exportHtml}
options={{
appearance: {
theme: "dark",
},
features: {
textEditor: {
fontSizes: ["70px", "60px", "50px"],
},
},
fonts: {
showDefaultFonts: false,
customFonts: [
{
label: "Comic Sans",
value: "'Comic Sans MS', cursive, sans-serif",
},
{
label: "DotGothic16",
value: "'DotGothic16',cursive",
url: "https://fonts.googleapis.com/css?family=DotGothic16",
},
],
},
}}
onLoad={onLoad}
onReady={onReady} />
same issuer on Ubuntu, fixed with showDefaultFonts: false
, not sure is it correct solution
I am trying to embed the EmailEditor via React, everything seems to work fine except the fonts section, the dropdown which is supposed to contain the list of fonts, shows nothing and even the font size selection is a bit off:
Is it a bug with the editor itself? or am I doing something wrong:
Code: