Google 字体和 TinyMCE [英] Google fonts and TinyMCE

查看:26
本文介绍了Google 字体和 TinyMCE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

tinyMCE 可以使用谷歌字体吗?这怎么办?

Can google fonts be used with tinyMCE? how can this be done?

推荐答案

还有一种方法,可能是将 google 字体插入 tinyMCE 的最简单方法.

There is also one more, probably the easiest way to insert google fonts into tinyMCE.

tinyMCE.init中指定如下:

content_css : "/tinymce_stylesheet.css,http://fonts.googleapis.com/css?family=Sanchez"

然后在 tinymce_stylesheet.css 中,您可以使用从 Google 导入的任何字体.

And then in tinymce_stylesheet.css you can use any font you imported from Google.

另外一个提示:不要从头开始编写新的样式表,而是复制文件:

One more tip: Instead of writing new stylesheet from scratch, duplicate the file:

tiny_mce/themes/advanced/skins/default/content.css

...并在那里更改字体系列.

...And change the font-family there.

这篇关于Google 字体和 TinyMCE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆