Font family doesn't work well in Google Chrome
See original GitHub issueWhen A tow-word font family witch separated by space (like Arial Black or Courier New) is set to a text, Tinymce puts the font family in a double quotation.
for example the created html by Tinymce will be like this :
<span style=
"font-family:
"arial black
";
"> some text </span>
Pay attention,it puts double quotation in another double quotation !!!
then when i get Tinymce html content and set it to another object like DIV, the style of the text does not work.because Google Chrome doesn’t support double quotation in another double quotation and change html like this :
<span style=
"font-family:;
"arial=
""black=
“”> some text </span>
Why does Tinymce put double quotation around tow-word font family witch separated by space How can i fix this bug?
this bug is just in Google Chrome
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
Hi, Which version would you want to fix this bug?
@spocke I also meet this bug.It show when I set font_formats config and the font-family has whitespace like ‘microsoft YaHei’.The plugin will set font-family value width double quotation mark.When I save my DOM as string and reload the string to editor, it will break the style and add font-family value to the attribule of element.we hope that setting font-family value width single quotation mark.