Solved

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

Posted on 2013-11-28
1
306 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 500 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

863 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now