tags:

views:

34

answers:

1

I want to load some custom css files classes in TinyMCE editor's styles dropdown, how one can do that specially through ASP.NET? is there any feature available from which i can pass on the path of my css files which are on a specific path at runtime? and TinyMCE editor load its classes in its Styles dropdown menu?

A: 

Hi Ali, While I am not familiar with ASP myself. I have done something similar using PHP in the past.

Use ASP to load the css file you want, in the head of your html

<link rel="stylesheet" type="text/css" href="<?php echo $pathtocss; ?>/tinymce.css" />

Then use the theme_advanced_styles option to the classes you want to use. http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/theme_advanced_styles

Hope this sets you in the right direction

John
that helped, Thanks
Ali