Google fonts and TinyMCE

tzador picture tzador · Nov 17, 2010 · Viewed 12.5k times · Source

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

Answer

kogitoja picture kogitoja · Nov 20, 2012

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

In tinyMCE.init specify as follows:

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

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.