WYSIWYG editors are unreadable font color

Need help with a WYSIWYG-editor in Joomla! 1.0.x? This is the place to be.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
Kershek
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Wed Apr 11, 2007 3:58 am

WYSIWYG editors are unreadable font color

Post by Kershek » Tue Aug 07, 2007 8:46 am

My site has a blue background with light yellow text.  Whether I use either the standard WYSIWYG editor or JCE, both show a white background with the light yellow text of my articles, which is unreadable.  How can I get the background changed so it is the same as my site?

Here is my site:
http://baronyoftwinmoons.org/

colza
Joomla! Intern
Joomla! Intern
Posts: 82
Joined: Fri Apr 27, 2007 4:45 am
Location: Australia

Re: WYSIWYG editors are unreadable font color

Post by colza » Tue Aug 07, 2007 8:52 am

I don't see a problem, I take it you fixed it?

If you did good on you, :)
always better to find out yourself, then you remember it  lol

Colza

P.S did you use the css file or what.

Kershek
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Wed Apr 11, 2007 3:58 am

Re: WYSIWYG editors are unreadable font color

Post by Kershek » Tue Aug 07, 2007 8:56 am

No, the problem is still occurring.  On the front end, it happens when editing calendar items or creating news items (both of which require registration). On the back end, it happens on any HTML editing screen.

I also have a problem with how lists show up, because the alternating background colors really mess with the blue background and don't look good.  You can see that plainly here:  http://baronyoftwinmoons.org/history/bardic-tales/ .  I suspect there will be css-editing involved there, but it's very difficult for me to find the right value to change.

Hopefully, both of these questions can be answered by the gurus here!

User avatar
jakebls
Joomla! Apprentice
Joomla! Apprentice
Posts: 30
Joined: Wed Nov 23, 2005 3:53 pm

Re: WYSIWYG editors are unreadable font color

Post by jakebls » Tue Aug 07, 2007 1:17 pm

Hello

In JCE, you can call a custom CSS file that the editor uses.
From the backend:
  - Components>JCE Admin>JCE Configuration
  - Set Template CSS Classes to NO
  - In the Custom CSS Classes field, enter the name of your CSS file for the editor to use. (editor_content.css)
  - Save the Configuration.
  - In your current Template CSS folder add the CSS file for the editor to use (editor_content.css).

In the editor_content.css file you can set the editors background color by using the BODY tag.

BODY {
margin: 0px 0px 0px 0px;
background-color : #ffffff ;
color : #000000;
}

You should also add the rest of the tags that are setup in your template_css.css file that the editor will use (p h1, h2, h3, a:link, etc)

Here is a basic on that  I use for the editor_content.css:

html{
  font-family      : Verdana, Arial, Helvetica, sans-serif;
}

BODY {
margin: 0px 0px 0px 0px;
background-color : #ffffff ;
color : #000000;
}

h1 {
color: #000; font-family: Trebuchet MS, Verdana, Arial, Helvetica, sans-serif;
font-size: 36px; font-weight: bold;
}

h2 {
color: #000; font-family: Trebuchet MS, Verdana, Arial, Helvetica, sans-serif;
font-size: 30px; font-weight: bold;
}

h3 {
color: #000; font-family: Trebuchet MS, Verdana, Arial, Helvetica, sans-serif;
font-size: 24px; font-weight: bold;
}


h4 {
color: #000; font-family: Trebuchet MS, Verdana, Arial, Helvetica, sans-serif;
font-size: 18px; font-weight: bold;
}

h5 {
color: #000; font-family: Trebuchet MS, Verdana, Arial, Helvetica, sans-serif;
font-size: 14px; font-weight: bold;
}

h6 {
color: #000; font-family: Trebuchet MS, Verdana, Arial, Helvetica, sans-serif;
font-size: 12px; font-weight: bold;
}

/* Horizontal Line */
hr {
background: #FF6600; height:2px; border: 1px inset;
}

hr.separator {
background: #FF6600;
height: 1px;
width: 75px;
border: 0px;
}

.x-small, .x-small a:link  {
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:8px;
color:#3366C0;
text-decoration:none;
font-weight:medium;
}


.small {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #FF6600;
text-decoration: none;
font-weight: normal;
}

.smalldark {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 10px;
        color: #333333;
        text-decoration: none;
        font-weight: normal;
        }

td,tr, div {
font-family: Trebuchet MS, Verdana, Arial, Helvetica, sans-serif;
color: #000000;
}

p{
  font-family: Trebuchet MS, Verdana, Arial, Helvetica, sans-serif;
  color: #000000; word-wrap: break-word;}
 
ul {
text-indent: 0px;
        list-style: disc;
        list-style-position:inside;
        list-style-type: disc;
        padding: 10px;
        margin: 20px;

}
li {
list-style: disc;
  list-style-position:inside;
        text-indent: 2px;
        list-style-position: inside;
        list-style-type: disc;
        padding: 2px;
        margin: 2px;

}

br{
clear: all;
}


Hope this helps!
Jake

Kershek
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Wed Apr 11, 2007 3:58 am

Re: WYSIWYG editors are unreadable font color

Post by Kershek » Tue Aug 07, 2007 4:04 pm

Thanks!  I'll try that tonight.

User avatar
pe7er
Joomla! Master
Joomla! Master
Posts: 24974
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, Netherlands
Contact:

Re: WYSIWYG editors are unreadable font color

Post by pe7er » Tue Aug 07, 2007 11:26 pm

jakebls solution sounds good! However, you could try some shorter method.

Put the following in your template_css.css:
.mceContentBody {
text-align: left;
background: #FFF none;
font: normal 11px Arial, Helvetica, sans-serif;
}

btw: this method is for the TinyMCE editor, I don't know if it works with JCE.
Maybe you'll have to add some CSS class name to .mceContentBody for JCE...
Kind Regards,
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com

User avatar
jakebls
Joomla! Apprentice
Joomla! Apprentice
Posts: 30
Joined: Wed Nov 23, 2005 3:53 pm

Re: WYSIWYG editors are unreadable font color

Post by jakebls » Wed Aug 08, 2007 5:13 am

Good call pe7er !  I'll have to try that!

arst06d
Joomla! Intern
Joomla! Intern
Posts: 72
Joined: Wed Feb 28, 2007 3:07 pm
Location: UK

Re: WYSIWYG editors are unreadable font color

Post by arst06d » Fri Nov 02, 2007 8:35 am

Thanks Pe7er, that sorted out my problem with JCE.

User avatar
bushie
Joomla! Apprentice
Joomla! Apprentice
Posts: 42
Joined: Sat Dec 10, 2005 5:48 am
Location: Victoria, Australia
Contact:

Re: WYSIWYG editors are unreadable font color

Post by bushie » Wed Nov 28, 2007 6:59 pm

Odd, but the .mce fix didn't work for me.  I still had that damned black background.  I did switch the classes of in the template_css file and went to editor css and got the white background.

Only problem now is that I am finding all the HTML content is coded with tags instead of tags.  Now some may not worry about this, but as a "traditional" coder I want my  paragraphs back.

Cheers,


Ric

User avatar
goodgbb
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sat Sep 22, 2007 1:30 pm
Contact:

Re: WYSIWYG editors are unreadable font color

Post by goodgbb » Sat Dec 01, 2007 2:37 am

Follow these easy steps to solve the background annoying problem!

1. Use JCE editor
2. Components -> JCE Admin -> JCE Configuration -> Template CSS classes = No
3. Done!
Last edited by goodgbb on Sat Dec 01, 2007 2:42 am, edited 1 time in total.
Boost traffic to your site for free, submit link now! - http://dir.kbbsite.com | Web Design - http://kbbsite.com

User avatar
MeanCatCoffee
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Sat Oct 23, 2010 8:23 pm

Re: WYSIWYG editors are unreadable font color

Post by MeanCatCoffee » Wed Jan 05, 2011 8:21 pm

goodgbb wrote:Follow these easy steps to solve the background annoying problem!

1. Use JCE editor
2. Components -> JCE Admin -> JCE Configuration -> Template CSS classes = No
3. Done!

That method did solve my problem. I now have black text on a white background when editing content. The only problem is now whenever I am editing something the following error appears at the top of the page:
* The file name 'templates/joomlage0018-earthslight/css/editor_content.css' was entered in the JCE Custom CSS field. This file could not be found in the default templates folder.
* The css file '/templates/system/css/editor.css' is being used instead.
Other than getting that error, everything seems to be working just fine. But that error is really irritating me and I would like to get rid of it. I did not add anything to my css file as pe7er suggested above because I was not sure where exactly in the css file to add the string (I can open and edit the file).

Sorry to be so dense. Can anyone help?


Locked

Return to “WYSIWYG Editors - 1.0.x”