在TinyMCE中更改默认字体类型/大小 [英] Change default font type/size in TinyMCE

查看:720
本文介绍了在TinyMCE中更改默认字体类型/大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在TinyMCE中更改默认字体类型和字体大小?

How do you change the default font type and font size in TinyMCE?

我正在使用高级外观,并且更改了 body,td,pre 样式(默认值/content.css),但仍不会更改。

I'm using the advanced skin and I've changed the body, td, pre style in default/content.css but it still doesn't change.

推荐答案

好吧,有几个 content.css ,只有一个用于根据您的配置设置来设置编辑器的样式。

Well, there are several content.css and only one is used to style your editor depending on your configuration settings.

您应该使用 content_css 配置选项,并命名一个自己的CSS文件,在其中您可以覆盖编辑器的默认设置(您最近正在寻找的 content.css ) 。在您的 init函数中,使用类似

You should use the content_css configuration option and name an own css file where you can overwrite the editors defaults (the content.css you were recently looking for). In your init function use something like

content_css: "http://localhost/css/my_tiny_styles.css",

my_tiny_styles.css 或您选择使用的任何文件

and in my_tiny_styles.css or whatever file you choose you use

font-family: myfont1, myfont2, sans-serif;

这篇关于在TinyMCE中更改默认字体类型/大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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