2010-12-13 47 views

回答

2

这里描述的是即使不适合每个人的工作。我给你的,你需要做什么的简短列表:

1.使用content_css tinmce初始化设置

content_css: "http://www.mydomain.com/css/content.css", 

2.创建一个content.css文件,其中包含类

h1.foo { 
    background-color: #F067A0; 
} 

3.使用styleformatting tinmce初始化设置

style_formats: [{ 
    title: 'My Foo styles' 
    }, { 
title: 'Foo', 
    block: 'h1', 
    classes: 'foo', 
    exact: true 
, 

4.请确保您有风格的按钮包括:(TinyMCE的INIT)

theme_advanced_buttons1: "styleselect", 

你应该能够在编辑器中选择从H1标签的文本,并从下拉菜单中选择FOO样式菜单。该类应该应用于您选择的文本。

+0

非常感谢,这工作! – chris 2010-12-13 17:29:43

+0

很高兴能够提供帮助 – Thariama 2010-12-13 17:54:55