Home Search Member List Faq Register Login  
UltimateEditor
Default color/font

Thread Starter: ksPhil   Started: 01-29-2010 5:12 AM   Replies: 7
 Karamasoft Support Forums » General Discussions » UltimateEditor » Default color/font
 Printable Version    « Previous Thread   Next Thread »
  29 Jan 2010, 5:12 AM
ksPhil is not online. Last active: 6/11/2010 2:33:17 AM ksPhil

Top 10 Posts
Joined on 02-14-2008
Posts 22
Default color/font
OK, I know I' being stupid, but...

I have an external CSS file set up via the TextBoxCssFiles which works as far as it goes - it defines the background color of the editor to be black - and this works.  Now I want the default text color - when a user comes along and starts writing (and before they select any style/fonts etc) to be white.  Tried everything but can't get it to do that...

...?

chers
Phil
 

  
  29 Jan 2010, 12:28 PM
Karamasoft is not online. Last active: 9/8/2010 11:48:21 AM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 5,334
Re: Default color/font
If you reply with the content of your external CSS file to show how you set the color attributes, we can help you better. Thanks.
  
  01 Feb 2010, 3:08 AM
ksPhil is not online. Last active: 6/11/2010 2:33:17 AM ksPhil

Top 10 Posts
Joined on 02-14-2008
Posts 22
Re: Default color/font
Well, there is nothing to post, really.   I have
body
{
 background-color : #000000;
}
which sets the text editor background to black.  Now I want to set the (default) font color to white, (before the user selects any styles or fonts)

cheers
Phil

  
  01 Feb 2010, 11:09 AM
Karamasoft is not online. Last active: 9/8/2010 11:48:21 AM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 5,334
Re: Default color/font
Please try the following:

body
{
color: #FFFFFF;
background-color: #000000;
}

  
  01 Feb 2010, 11:38 AM
ksPhil is not online. Last active: 6/11/2010 2:33:17 AM ksPhil

Top 10 Posts
Joined on 02-14-2008
Posts 22
Re: Default color/font
You'd think so, wouldn't you?  This works in Firefox, but in IE (8) the text appears as black on a white "highlight"...

  
  02 Feb 2010, 7:01 PM
Karamasoft is not online. Last active: 9/8/2010 11:48:21 AM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 5,334
Re: Default color/font
Our ExternalCssFiles live demo sample uses both background and foreground colors and it works properly for both IE8 and Firefox. Please try our sample at http://www.karamasoft.com/Samples.aspx?component=UltimateEditor&sample=ExternalCSSFiles and let us know if it doesn't work for you. If the live demo sample doesn't work for you, let us know about your operating system and web browser version details so that we can try to test it in a similar environment.
  
  03 Feb 2010, 3:47 AM
ksPhil is not online. Last active: 6/11/2010 2:33:17 AM ksPhil

Top 10 Posts
Joined on 02-14-2008
Posts 22
Re: Default color/font
I have seen that sample, butg the only way (I can get) to set the text color to be anything other than black is to select a style for it - but I need it to be white *without any style having been selected* - ie the default.  Your sample defaults to black text, and color is only applied when the text is wrapped in a style attribute seting it so.
cheers
P

  
  03 Feb 2010, 11:55 AM
Karamasoft is not online. Last active: 9/8/2010 11:48:21 AM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 5,334
Re: Default color/font
If you take a look at StyleSheet2.css in that sample, the body style is defined as follows:

body
{
color:#0000FF;
}

Therefore, the body text color is defined as blue, not black. If you are not able to achieve what you're looking for through external CSS files, try setting the initially selected values for the foreground and back color toolbar buttons in your editor XML file as shown in our Initialize Toolbar Items sample at http://www.karamasoft.com/Samples.aspx?component=UltimateEditor&sample=InitializeToolbarItems.

  
 Page 1 of 1 (8 items)
Karamasoft Support Forums » General Discussions » UltimateEditor » Default color/font

You can add attachments
You can post new topics
You can reply to topics
You can delete your posts
You can edit your posts
You can create polls
You can vote in polls
Forum statistics are enabled
Forum is unmoderated

© 2002-2010 Karamasoft LLC. All rights reserved.