Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 346
  • Last Modified:

ckeditor - how to match the styles on your website within the editor

Hi,

i have an admin system integrating ckeditor. How do i configure it to match the styles used on my website?

Thanks
0
coolispaul
Asked:
coolispaul
1 Solution
 
Matthew KellyCommented:
So, I believe you mean making the rich text area that the admin's type text into match the theme of your site so it is a better What You See Is What You Get on the website editor, i.e. the font size, where it wraps, etc?

CCKEDITOR has a contentsCss you can set to a custom css file: http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.contentsCss

Keep in mind you will likely have to make a special one just for ckeditor instead of just using your websites css file. That is because likely you are using classes such ".contentArea div" or something on your website and those classes won't exist in the editing page where ckeditor exists.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now