JiHong88 / suneditor

Pure javascript based WYSIWYG html editor, with no dependencies.
http://suneditor.com
MIT License
1.66k stars 307 forks source link

Bug using font-family with number #1382

Closed eliabecorrea closed 2 months ago

eliabecorrea commented 2 months ago

Describe the bug

I imported fonts from the Google Fonts API and some of them have numbers in their names, such as: Exo 2, Source Sans 3, Slabo 27px, etc. In this case, when selecting one of these fonts it is not applied.

To Reproduce You can use the custom fonts option to add the above mentioned fonts image

The fonts appears in the font menu, but when I click on one of them nothing happens. image

image

image

But if I add a font without a number and click in it, it is applied normally image

image

JiHong88 commented 2 months ago

Version 2.46.1 has been deploied. Thank you.

eliabecorrea commented 2 months ago

Wow, it was fast! Thank you.