Amit
Amit

Reputation: 4000

setcontent in tinymce does not copy styling of html

I cant get tinymce to use the styling of the html sent to it by setContent. for eaxmple when i edit <h3>Amit</h3>, tinyMCE shows this in bold, even though the text is not in bold.

How do i make tinymce use the styling of the text?

Upvotes: 0

Views: 219

Answers (2)

Brett Henderson
Brett Henderson

Reputation: 1684

If you have specific CSS styling for your H3, make sure you are including the css file in the configuration of TinyMCE via the content_css config item.

Upvotes: 1

Thariama
Thariama

Reputation: 50840

Please verify if h3 is defined as valid element in your tinymce init!

Upvotes: 0

Related Questions