Forum closed. New forum available at

Switch classes

Support forum for WYMeditor.

Switch classes

Postby luanlmd on Wed May 12, 2010 8:02 pm

For example i have too classes

/* Img: Left */
img.aleft /* img[@class!="left"] */ {
/* float:left; position:relative; */

/* Img: Right */
img.aright /* img[@class!="right"] */ {
/* float:right; position:relative; */

how do i setup to switch between them? in other words, if i use img.aright and then use img.aleft, I want the img.aright to be removed.
any idea?
Posts: 2
Joined: Tue Mar 30, 2010 7:41 pm

Re: Switch classes

Postby mr_lundis on Sun May 16, 2010 12:36 pm

There's no simple solution to this, as the current implementation doesn't allow you to add custom logic to the class selection dropdown. What you could do is override the implementation to allow for this, but I don't know if you'd find it worth your time. Another solution would be to add a set of alignment buttons to the toolbar, that uses classes internally.

Cheers! ;)
Jonatan Lundin - designer, developer and forum moderator. You should follow me on Twitter!
Posts: 335
Joined: Sun Dec 02, 2007 10:59 am
Location: Sweden

Re: Switch classes

Postby christracy123 on Tue May 25, 2010 8:04 am

agree with mr_lundis! anyways, did i follow you already in twitter?. hmm...
Being stressed out and overweight may not be YOUR fault! It's true, a mysterious condition might be to blame. An estimated 70-80% are suffering from this condition, and don't even know it!
Posts: 6
Joined: Sat Jan 23, 2010 6:04 am

Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest