开发者

Applying a specific CSS to TinyMCE

I'm using content_css: and have a script in place that allows me to change the css applied to a TinyMCE component based on a CMS project code.

I found a problem when I have a site that has a colour set as the background and then white for the text.

The TinyMCE looked to start applying the css correctly but when it reached the text the background changed back to being white with black text, but it then goes on to apply some of the styles, this means that my hyperlinks (on this particular site) look to disappear as I have defined the colour as white.

Is there something I can change that will apply the correct background colour in the tinyMCE tool without affecting the actual outco开发者_开发知识库me of the site's css?


To get the css to be applied to the tinyMCE editor, you need to make sure the body tag has a background and color value too, else it will not pull this through and instead use what looks to be a default style.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜