This project is read-only.

TinyMCE editor not using CSS style of website?

Topics: ASP.NET 2.0, Controls
Oct 1, 2009 at 9:50 AM

Hi, can anybody tell me how I align the TinyMCE editor to actually use the CSS styling of my website so that what styles I choose in the editor actually show in the editor how they are seen inside the front of my site - because at the moment it couldnt look more different !! ?

Many thanks,


Oct 1, 2009 at 11:26 AM

I'm not sure how it will look, but here's what you can try ...

In the admin folder, there's a file named tinyMCE.ascx.  If you open it up, you'll see a bunch of settings.  You can add a setting named "content_css" and specify the CSS file in your theme folder for the value.  So it will look something like:

        ...... existing settings .......
        tab_focus : ":prev,:next",
        content_css: "/themes/standard/style.css"

I added the line in bold.  Also ADD a comma at the end of the previous line as shown above (at the end of the tab_focus line).