Editor Control CSS

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
7/27/2010 9:34:50 PM
Gravatar
Total Posts 131

Editor Control CSS

Anyone know where I can set CSS values for the editor controls? I need to change the text and background colors.

 

Thanks

7/29/2010 5:47:12 AM
Gravatar
Total Posts 34

Re: Editor Control CSS

ClientScript\fckeditor266\editor\css

7/29/2010 6:00:32 AM
Gravatar
Total Posts 18439

Re: Editor Control CSS

In your layout.master you should have <body class='pagebody'>

Then in CSS

body{} controls the editor background and foreground

and

body.pagebody {} is where you put colors for the page itself

Hope it helps,

Joe

7/29/2010 9:21:42 AM
Gravatar
Total Posts 34

Re: Editor Control CSS

But if you want to synch your custom css (like the one you might use in the the html modules) you need to edit the fck css, correct?

7/29/2010 11:50:39 AM
Gravatar
Total Posts 18439

Re: Editor Control CSS

I'm not aware of any need to modify editor specific css files. By default mojoportal uses the same css in the editor as in the site so if the site has a background color it also would show in the editor which is not always wanted so the pagebody solution is meant to allow a different background and forecolor in the editor than is used on the site since the body tag in the html for the editor does not have the pagebody class.

Best,

Joe

7/29/2010 1:39:37 PM
Gravatar
Total Posts 34

Re: Editor Control CSS

What I meant is, if one defines a custom class to be used for some html modules how do I make values for html tags (defined in that class) appear in the text tags dropdown of the editor?

Lets say I define <h1> to be Lucinda Sans, 14, Orange, Bold in class htmlmodule123. How do I make this particular h1 appear on the style text formatting dropdown of fck? I thought (have not tried that yet - on my to do list) one has to eupdate the config of the editor and add those styles there.

7/31/2010 10:10:52 AM
Gravatar
Total Posts 18439

Re: Editor Control CSS

Back in the old days there was an xml file you could use to customize this in FCKeditor, but quite a while ago we implemented style templates that integrate into all of the supported editors.

http://www.mojoportal.com/creating-content-style-templates.aspx

Hope it helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.