Page 1 of 1

Styles and Classes in WYSIWYG

Posted: Sat Jul 22, 2006 11:56 am
by Daniel
I've been having some problems with WYSIWYG editors and classes from my style sheet.

In Xinha and TinyMCE, the styles menu should be populated with available classes from the CSS, but when I click the dropdown menu it is empty.  Is this just something that has to be put up with because of CMSms's Database stylesheets management thing or can I edit the code in anyway to fix it for either editor?

Thanks in advance,
Daniel  ;D

Re: Styles and Classes in WYSIWYG

Posted: Sat Jul 22, 2006 1:11 pm
by tsw
wysiwyg css classes have been problematic.

try copy pasteing all your css into extensions -> fckeditor -> styles (I heard that this will change in 1.0)

hope this helps

Re: Styles and Classes in WYSIWYG

Posted: Sat Jul 22, 2006 7:06 pm
by Daniel
Thanks, but it hasn't helped.  I can't find an extensions folder or a styles folder.  I found a styles folder in tinyMCE, but putting the stylesheet there didn't help.  Thanks again!  Anyway, I can just put in the class in the html source in the meantime

Daniel
edit: [glow=green,2,300]UPDATE![/glow]
Ok, I've discovered how to do this.  Basically, TinyMCE picks up whatever styles etc. are applied to the page it is on.  Therefore, what you have to do is create a new admin theme which is exactly the same as the default and then add a stylesheet to it containing all your classes and their css.  Hope this helps everyone!

Another update, see below


Daniel

Re: Styles and Classes in WYSIWYG

Posted: Sat Jul 22, 2006 9:50 pm
by Daniel
Ok, scratch that, couldn't get cmsms to link to my new css.
Just have to:
1 create a new admin theme (go to the admin/themes directory and copy the default folder to the same place.  Then rename it whatever)
2 add your classes from the css to the css/style.css file in the new theme
3 set the default theme to your new one

It's a bit annoying, but hopefully will be fixed for a future release!

Thanks,
Daniel


GAH! More updates below

Re: Styles and Classes in WYSIWYG

Posted: Sat Jul 22, 2006 9:53 pm
by Daniel
Ok, that doesn't work either.  Sorry folks!

Daniel