Help us to help you!

Our aim is to offer you the best service possible, to do this we need to know: (1.) Joomla! version (2.) Server type (3.) Editor version (4.) Browsers type & Version and any (5.) Error messages you may have, for help in finding this information please - click here…We would also invite you to read our form rules before posting - read more…

Welcome, Guest
Please Login or Register.    Lost Password?

How do you configure the editor to look at a different css stylesheets?
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: How do you configure the editor to look at a different css stylesheets?
#10
How do you configure the editor to look at a different css stylesheets? 2 Years, 3 Months ago  
Hi,

I'm newly to join CK. I created a few custom css files for styling web content. However, I don't know how to link up my custom css files using CK editor.
JimmyJames

Last Edit: 2010/03/03 23:22 By Paul.F.
The topic has been locked.
 
#11
Re:How do you configure the editor to look at a different css stylesheets? 2 Years, 3 Months ago Karma: 20
Hi JimmyJames,

Thank you for your post.

By default the editor looks for the template.css however you can configure it to look at a different css stylesheets.

Heres how:

Go to the backend and Login in with your ‘Username’ and ‘Password’. Go to 'Extensions' and click on ‘Plugin Manager’ > and select and open the 'JoomlaCK' Plug-in.

In the editor you will see a set of Parameters on the right:

* Set the “Use Template CSS classes?” to NO

* In “Use Custom CSS Classes?” field place the pathway to the CSS file you want to use with the editor (It will normal look something link this: templates/yourtemplatename/css/cssfile.css) and press Save.

* To apply the setting and close click on 'Save'.

Also the editor support the CSS import rule:
Code:

@import url( 'nameofstylesheet.css' );

This can be used to include external styles sheet in the editor. Please see webdesign.about.com/cs/css/qt/tipcssatimport.htm

Hope that helps and take care,

P
Paul.F
Administrator
Posts: 1045
graph
User Offline Click here to see the profile of this user
Gender: Male webxsolution.com Location: London Birthday: 12/09
Last Edit: 2010/03/03 23:23 By Paul.F.
If you use JoomlaCK Editor, please post a review at the Joomla! Extensions Directory.
The topic has been locked.
 
#12
Re:How do you configure the editor to look at a different css stylesheets? 2 Years, 3 Months ago  
Thanks for reply.

I already added the path in "Use Custom CSS Classes?" and "Location For Addition Stylesheets" .

However, I still can't select the custom div id & div class on the style selector in editor.(please see attached file)

Moreover, which file I should add the "@import in Cascading Style Sheets" tag to link up my custom css file?

Regards,
JimmyJames

Last Edit: 2009/10/23 14:26 By Paul.F.
The topic has been locked.
 
#13
Re:How do you configure the editor to look at a different css stylesheets? 2 Years, 3 Months ago Karma: 20
Ok here’s what to do.

1. Set the editor to look at your template.css file or equivalent css file.

2. At the top of the template.css file (or equivalent css file) use the css important rule to include external style-sheets. It should look something like this:

Code:

/* typography styling */ 
@import url(editor.css); 
 
/* layout styling */ 
@import url(layout.css); 
 
/* module styling */ 
@import url(modules.css);



This will include the other styles in your other style-sheets into the editors style dropdown list. The other thing worth checking is your css tag. A CSS error in your style-sheet could cause the list not to populate.

Take care,

Paul
Paul.F
Administrator
Posts: 1045
graph
User Offline Click here to see the profile of this user
Gender: Male webxsolution.com Location: London Birthday: 12/09
Last Edit: 2009/10/23 14:25 By Paul.F.
If you use JoomlaCK Editor, please post a review at the Joomla! Extensions Directory.
The topic has been locked.
 
#14
Re:How do you configure the editor to look at a different css stylesheets? 2 Years, 3 Months ago  
Finally , I get it.

JimmyJames

The topic has been locked.
 
Go to topPage: 1
Moderators: Paul.F