Reteras Remus
Reteras Remus

Reputation: 933

Font style doesn't work on front end

I have an admin panel -developed by me- (where tinymce and textarea are placed) and the frontend (where I output the text saved in the database submited with tinymce).

The problem is with the frontend font style (size, align, family, style) doesn't work. I viewed the output source file and I saw undefined CSS Rules, like: <span class='italic'>MY TEXT</span> or <p class='textleft'>MY TEXT 2</p>.

Am I need to include in the header tinymce CSS files? Or, am I need to write it my self ( .italic { font-style:italic !important; } )?

Upvotes: 1

Views: 242

Answers (1)

Thariama
Thariama

Reputation: 50832

Use the content_css configuration setting of tinymce to include custom css styles into your editor instance.

Upvotes: 1

Related Questions