Ticket #5047 (new New Feature)

Opened 2 years ago

Last modified 16 months ago

Background color in CKEditor 3.1 normal/fullscreen

Reported by: bestis Owned by:
Priority: Normal Milestone:
Component: General Version: 3.1
Keywords: Cc:

Description (last modified by fredck) (diff)

There is new contents.css which tells it to be white. Changing it doesn't help when using v2 style, because it has editor.css:

.cke_contents{border:solid 1px #696969;background-color:white;}

Changing that to transparent fixes the problem.

But then when Maximized to fullscreen transparent shows underlaying page and there isn't any way (that I know of) chancing the background and maybe other styles according to are we in normal or fullscreen. There should be some class to use differentiate the mode.

Change History

comment:1 Changed 2 years ago by fredck

  • Keywords background, transparency, fullscreen, v2, color removed
  • Type changed from Bug to New Feature
  • Component changed from Core : Styles to General
  • Description modified (diff)

comment:2 Changed 20 months ago by bestis

  • Milestone set to CKEditor 3.5

Oh C'mon please fix this. This is a big show stopper for us. So I changed milestone to 3.5 if something would happen to this.

comment:3 Changed 20 months ago by fredck

  • Milestone CKEditor 3.5 deleted

Maybe you can provide us a patch for this one?

comment:4 Changed 16 months ago by bestis

If I would know how to make it and would be familiar enough and would know enough js then maybe. But ok, why there is then contents.css which says:

	/* Remove the background color to make it transparent */
	background-color: #fff;

If removing that doesn't make it transparent? As those skins says that it's white.

But ok, after  http://dev.ckeditor.com/changeset/3611/CKEditor/trunk now there are maximized which can be used:

.cke_skin_v2 .cke_contents{border:solid 1px #696969;background-color:transparent;}
.cke_maximized {background-color: white;}

This makes thing much nicer and there is a way to change background color accordingly are we in fullscreen or not. As to original problem, there's still that contents.css text that isn't true.

Now my problem is how could I define that .cke_maximized color in some other css file which I could generate, as it would be nice if the background color would in fullscreen case be the "user configured background color", which I cannot declare statically in editor.css. Didn't manage to override those editor.css settings in contentCss file. But one could think that as a different problem.

Note: See TracTickets for help on using tickets.
© 2003 – 2011 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy