Suneditor: Please use fonts (like fontawesome fonts) instead of images

Created on 27 Dec 2017  ·  6Comments  ·  Source: JiHong88/SunEditor

Hi I wanted to suggest that you use fonts instead of images to improve http request performance
I suggest Fontawesome fonts or you can combine the images into a single sprite or svg file

All 6 comments

Hi! I wanted use fontawesome but,
I did not use it because I wanted to maintain a pure JavaScript-based identity.
I will use single sprite or svg file after modularization.
What do you think?

SVG is a great option, so it scales proportionately
Don't forget to provide an option for setting the svg or sprite path upon instantiation of the editor

Hi~
I processed converted png file to svg and modified icon css.
The icon path and so on can be found in the suneditor.css file.

The icons are separate files. I was thinking a sprite will be better.

I did not apply it because I did not know how to merge svg files
I will merge soon :)

Hi ~

merged svg files and applied them as web fonts.

now suneditor do not download many files : )

v1.10.3

Was this page helpful?
0 / 5 - 0 ratings

Related issues

redone80 picture redone80  ·  4Comments

David-Grass-Feria picture David-Grass-Feria  ·  6Comments

chbin05 picture chbin05  ·  3Comments

guido-visser picture guido-visser  ·  3Comments

vijayaragavan95 picture vijayaragavan95  ·  6Comments