wysiwyg-editor icon indicating copy to clipboard operation
wysiwyg-editor copied to clipboard

Froala replaces single quotes with double quotes when applying fonts

Open WayneUong opened this issue 5 years ago • 3 comments

Reproduce: https://www.froala.com/wysiwyg-editor/examples/font-family

  1. Select any text
  2. Select Roboto font
  3. Select Open Sans Condensed

Expect: style="font-family: 'Open Sans Condensed',sans-serif;"

Result: style='font-family: "Open Sans Condensed", sans-serif;'

Only happens when select another font first, then select the one with single quotes. This cause incompatibility errors in many html renderers.

WayneUong avatar May 24 '19 23:05 WayneUong

Any update about this issue?

When I pasted html page content, the source code like this: image

And when I rendered this content, the style get break because double quote:

image

torrac12 avatar Nov 11 '22 02:11 torrac12

I'm seeing a similar issue. When applying a font, with single quotes (for example: 'Open Sans',sans-serif), this happens: BEFORE: style="color:rgb(0,0,0);" AFTER: style='color: rgb(0, 0, 0); font-family: "Open Sans", sans-serif;'

And then when I reload the page, the editor is automatically removing the font-family. Customers are complaining that their font updates aren't saving.

bpautsch avatar Dec 07 '22 17:12 bpautsch

@torrac12 is there any work around for this issue ?

KlentyDhanush avatar Feb 26 '24 10:02 KlentyDhanush