Styles and Classes in WYSIWYG

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Daniel
Forum Members
Forum Members
Posts: 20
Joined: Fri Apr 14, 2006 7:47 pm

Styles and Classes in WYSIWYG

Post 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
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm
Location: Finland

Re: Styles and Classes in WYSIWYG

Post 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
Daniel
Forum Members
Forum Members
Posts: 20
Joined: Fri Apr 14, 2006 7:47 pm

Re: Styles and Classes in WYSIWYG

Post 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
Last edited by Anonymous on Sat Jul 22, 2006 9:47 pm, edited 1 time in total.
Daniel
Forum Members
Forum Members
Posts: 20
Joined: Fri Apr 14, 2006 7:47 pm

Re: Styles and Classes in WYSIWYG

Post 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
Last edited by Anonymous on Sat Jul 22, 2006 9:53 pm, edited 1 time in total.
Daniel
Forum Members
Forum Members
Posts: 20
Joined: Fri Apr 14, 2006 7:47 pm

Re: Styles and Classes in WYSIWYG

Post by Daniel »

Ok, that doesn't work either.  Sorry folks!

Daniel
Post Reply

Return to “Modules/Add-Ons”