Dennis Lauritzen
Dennis Lauritzen

Reputation: 404

CKeditor content styled as the frontend design

I am currently making a design where a CKeditor is managing the content in a 960px wide container. Well the content inside that box is in two columns, which is just two divs, that is styled with div:first-child and div:nth-child(2) .. What I want is to make the CKeditor have these to div's pr. default and have them styled as in my frontend design - is that possible??

Upvotes: 2

Views: 1032

Answers (1)

Marcel
Marcel

Reputation: 28097

You can either edit /contents.css to reflect the final look within the editor, or load in a different CSS file for editors using CKEDITOR.config.contentsCss = '/path/to/editors.css';. Default content is probably easier to implement as part of the CMS you're using.

Upvotes: 2

Related Questions