keiichi Posted July 8, 2010 Share Posted July 8, 2010 I need to override some css styles for content added with TinyMCE.like, font-size, color, margin etc.Thankyou Link to comment Share on other sites More sharing options...
keiichi Posted July 9, 2010 Author Share Posted July 9, 2010 anyone??Thankyou Link to comment Share on other sites More sharing options...
rocky Posted July 10, 2010 Share Posted July 10, 2010 You should edit the styles in the /* global RTE fields */ section of global.css. If you need to override those styles for a specific element, click the HTML button in the TinyMCE toolbar, then add code like the following to the appropriate tag: style="color: blue" This will make just that element blue instead of whatever is defined in global.css. Link to comment Share on other sites More sharing options...
keiichi Posted July 10, 2010 Author Share Posted July 10, 2010 Ok, I get the idea.But I was hoping to use some kind of class in the global css like this: .importantTitle { font-size: 20px; color: #fff; } and then from the "styles" menu in TinyMCE just select the style to be applied.That way yo can say to a client:"Use the importantTitle style for something you want to show a really important"...BTW Thankyou Rocky!! Link to comment Share on other sites More sharing options...
rocky Posted July 10, 2010 Share Posted July 10, 2010 I did a quick Google search for how to add items to the "Styles" dropdown in TinyMCE. It seems you just need to add your .importantTitle style to global.css, then edit the TinyMCE configuration to add that style to the "Styles" dropdown. I can't figure out how to do this though. I'll let you search and try to figure it out, so I can answer other questions on the forum. Link to comment Share on other sites More sharing options...
keiichi Posted July 10, 2010 Author Share Posted July 10, 2010 Sure Rocky, thanks again for the help.If I came up with a solution I will post how to solve it. Link to comment Share on other sites More sharing options...
Boonyawat Posted November 10, 2017 Share Posted November 10, 2017 Any solution to this? I have been looking to do exactly this as well. Thank you Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now