Page 1 of 1

Switch classes

PostPosted: Wed May 12, 2010 8:02 pm
by luanlmd
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?

Re: Switch classes

PostPosted: Sun May 16, 2010 12:36 pm
by mr_lundis
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! ;)

Re: Switch classes

PostPosted: Tue May 25, 2010 8:04 am
by christracy123
agree with mr_lundis! anyways, did i follow you already in twitter?. hmm...