wysiwyg-editor
wysiwyg-editor copied to clipboard
Froala replaces single quotes with double quotes when applying fonts
Reproduce: https://www.froala.com/wysiwyg-editor/examples/font-family
- Select any text
- Select Roboto font
- 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.
Any update about this issue?
When I pasted html page content, the source code like this:
And when I rendered this content, the style get break because double quote:
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.
@torrac12 is there any work around for this issue ?