CKEditor 4 combinate css

Alex

New Member
I use CSS on my website to style the items.In my (own developed) CMS I use CKEditor as WYSIWYG-editor.I would like the editor to have the same style as the content on my webpage.The CSS of my page looks like this:\[code\].content { ...}.content ul, .content ol { ...}.content p{ ...}\[/code\]But the stylesheet of CKEditor (contents.css) looks like this:\[code\]body{ ...}ol,ul,dl{ ...}h1,h2,h3,h4,h5,h6{ ...}\[/code\]Is there a way to make this in to one stylesheet, or to edit CKEditor, so a div.content is added?I found the answer, change config.js to:\[code\]CKEDITOR.editorConfig = function( config ) { config.bodyClass = 'content'; //class that body needs to refer to config.contentsCss = '/css/beheer.css'; //your stylesheet\[/code\]
 
Back
Top