Baz,

> Also, Ive created my own style sheet and edited the TinyMCE config
> file to point to them. My styles are showing in the drop down menu,
> but TinyMCE dosnt display them in the editor and when I check the
> HTML code, its inserting the default styles instead.

TinyMCE will not apply previous CSS inheritance.

So for example, if you code you page using CSS inheritance (which I hope you
do :) ), then all of the styles used within the content area might look
something like this in the CSS file:

div#content a {
  color: #555;
}
div#content img {
  border: 0;
}
div#content img .floatRight {
  float: right;
}
Etc...

However, in TinyMCE it wants to treat things like the root.  So what I do is
not break my CSS file (or site structure).  Instead I create a simple CSS
file (wysiwyg.css) and replicate all of the content-specific style (usually
only a few... things like h1-h6, blockquote, img, p, and other commonly used
block formats) and add the custom style as well.

So in my wysiwyg.css file I'd copy the same styles used for my #content
block (content used withing <div id="content">).  Using the example above my
wysiwyg.css file might look something like this:

a {
  color: #555;
}
mg {
  border: 0;
}
img .floatRight {
  float: right;
}

Hope that helps,
 
---
Jeff Coughlin
Web Application Developer
http://www.jeffcoughlin.com


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"farcry-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/farcry-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to