Custom Styles for Tiny MCE
Permalink
Hi,
How can we add custom styles to tiny mce editor styles drop down.
Is it possible to have a content block inside another content block.to achieve something like this:
heading1(css:style1)
content1(css:style2)
heading2
content2
Thanks
How can we add custom styles to tiny mce editor styles drop down.
Is it possible to have a content block inside another content block.to achieve something like this:
heading1(css:style1)
content1(css:style2)
heading2
content2
Thanks
check out typography.css for your theme
important hint: typography.css has to stay in your theme root (_not_ /css or some other folder)
check this tutorial:http://www.codeblog.ch/2009/05/concrete5-css-features/...
so does this mean we can/should take these styles out of the main.css and place them only in typography.css ?
you basically put the following styles into typography:
- those you want to see while editing the text
- those you need to be able to select in the wysiwyg editor
- those you want to see while editing the text
- those you need to be able to select in the wysiwyg editor
the tiny editor doesn't seem to be updating the styles dropdown menu. What could be wrong? Not all of them show up. The ones that do show up I tried taking them out of typography.css and reinstalled the theme and they are still there. I also tried clearing my cache.
I'm not sure if this will solve your specific problem but you can control what shows up in the WYSIWYG drop downs using a custom layout as described in this post:
http://www.concrete5.org/index.php?cID=16217...
Then you can add corresponding styles to typography.css to take care of the rest.
Hope that helps.
ry
http://www.concrete5.org/index.php?cID=16217...
Then you can add corresponding styles to typography.css to take care of the rest.
Hope that helps.
ry