How to add a new font in tinymce editor?

后端 未结 4 1240
甜味超标
甜味超标 2021-01-01 13:47

I want to add new font in tinymce editor which are display in font dropdown and apply to editor text.

I try to add ttf font in

4条回答
  •  离开以前
    2021-01-01 14:51

    Using Google Fonts i've just achieve this issue using two lines (in TinyMCE initialization):

    content_css: ['https://fonts.googleapis.com/css?family=Gugi'],
    font_formats: 'Arial Black=arial black,avant garde;Gugi=Gugi, cursive;Times New Roman=times new roman,times;',
    

    The new font is called Gugi and will appear between arial black and times new roman

提交回复
热议问题