angular-email-editor icon indicating copy to clipboard operation
angular-email-editor copied to clipboard

Font not appear and can't change

Open jacklesphere opened this issue 3 years ago • 4 comments

Screenshot 2022-02-04 at 11 26 27 AM

how to load the font list in angular??

jacklesphere avatar Feb 04 '22 03:02 jacklesphere

Passing the below in options solved the problem for me.

fonts: { showDefaultFonts: false }

Detailed documentation - https://docs.unlayer.com/docs/font-management

I think the showDefaultFonts logic is written in reverse.

So, in my html file I have <email-editor [options]="options" (loaded)="editorLoaded()"></email-editor>.

In my component, I have options = {fonts: { showDefaultFonts: false }}.

khyokhyo avatar Feb 17 '22 18:02 khyokhyo

Passing the below in options solved the problem for me.

fonts: { showDefaultFonts: false }

Detailed documentation - https://docs.unlayer.com/docs/font-management

I think the showDefaultFonts logic is written in reverse.

So, in my html file I have <email-editor [options]="options" (loaded)="editorLoaded()"></email-editor>.

In my component, I have options = {fonts: { showDefaultFonts: false }}.

great, this solve my problem, thank you...

jacklesphere avatar Feb 18 '22 13:02 jacklesphere

Yes, this solved my problem. The font logic is implemented in reverse!

Mallesh-Nagothi avatar Mar 16 '22 12:03 Mallesh-Nagothi

This solved my problem with the initial display, but it messed up the styling in preview. I added the fonts I was using as custom fonts to help with that. I wish the developers would look into this, it's a funny bug

options = {
    fonts: { 
      showDefaultFonts: false,
      customFonts: [
        {
          label: "Playfair Display",
          value: "'Playfair Display',serif",
          url: "https://fonts.googleapis.com/css?family=Playfair+Display:400,700",
        },
        {
          label: "Montserrat",
          value: "'Montserrat',sans-serif",
          url: "https://fonts.googleapis.com/css?family=Montserrat:400,700",
        },
      ],
    }
}

Note: I use the free plan

hridsn99 avatar Apr 27 '22 09:04 hridsn99