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

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

问题描述

谷歌字体可以与tinyMCE一起使用吗?

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

推荐答案

还有一个,可能是最简单的方法来插入谷歌字体到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天全站免登陆