Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2013-11-28
1
Medium Priority
?
342 Views
Last Modified: 2013-12-13
Hi,

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

Thanks
0
Comment
Question by:coolispaul
1 Comment
 
LVL 18

Accepted Solution

by:
Matthew Kelly earned 2000 total points
ID: 39683891
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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There is a massive demand for content on the web right now, and it doesn't look like it's going to stop any time soon. But, if you are running a business blog, it's not just enough to offer your audience lots of content. It needs to be high-quality…
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
This video teaches users how to migrate an existing Wordpress website to a new domain.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question