Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Disable style sheets in the editor View modes: 
User avatar
Member
Member
lwhittemore-emh - 3/7/2012 7:29:07 PM
   
Disable style sheets in the editor
Hello, I have a stylesheet specifically for form elements. What is the easiest way to disable that css file from displaying when I am in the cmsdesk as it messes everything up?

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 3/12/2012 2:54:19 AM
   
RE:Disable style sheets in the editor
Hi,

you can define a different stylesheet for CK editor in the CMS Desk. In the SiteManger -> Sites -> edit your site -> Tab General -> you can configure Site CSS stylesheet: and Editor CSS stylesheet:

Editor CSS stylesheet: defines the CSS Style in the CMS.
Site CSS stylesheet: defines the CSS Style on live site.

Best regards,
Ivana Tomanickova

User avatar
Member
Member
lwhittemore-emh - 3/14/2012 8:42:34 AM
   
RE:Disable style sheets in the editor
I have created a new stylesheet and set it as my editor stylesheet in the sitemanager but it does not seem to show. Is there any code that needs to be in the master page for this to work?

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 3/19/2012 6:04:13 AM
   
RE:Disable style sheets in the editor
Hi,

could you please try to insert to you CK editor stylesheet following code?

body {background-color: white}


Then the background of edit areas will be white in CMSDesk (as edit areas are placed in iframe).

Best regards,
Ivana Tomanickova