jQuery hooks in the WSY CSS

Hi Guys,


It's wednesday wednesday - then it's thursday - then it's friday friday and everybodies Russian.



Just wondering if it was possible to add a jQuery hook class in the WSY css file for use in the WSY editor.

From my understanding it had to be actually found within a css asset for the class to append.



Many thanks

The Ms Fuzz

Hey Fuzz


When you say jQuery 'hook' do you mean you just want to output a class to the dom which you can hook into with some jQuery?



Were you looking to populate the WYSIWYG div drop down style selector with a class to do this? Or were you looking to populate the div properties pop up style drop down with a class to do this?



Cheers



Scotty

Ello!


We were looking at populating the WSY drop down selector to do this. It has been added in and outputs the class. A class just needed to be outputed for hooking into some jQuery.



I didn't think it was possible to do this or the right area for this.



Is it also possible to have commenting in the WSY CSS? To group classes a little?

[quote]


We were looking at populating the WSY drop down selector to do this. It has been added in and outputs the class. A class just needed to be outputed for hooking into some jQuery.

[/quote]



So it is working?


[quote]

I didn't think it was possible to do this or the right area for this.

[/quote]



A screeny of what is working and what isnt might be the go here to clarify.




[quote]

Is it also possible to have commenting in the WSY CSS? To group classes a little?

[/quote]



Nope, but you could name your classes in a way that 'groups' them e.g. orsm-style1, orsm-style2 would be 'grouped' styles for 'orsm' and eductae the users on their use.

Ello,


Thanks I think it is working. Well the class is applying. Damn about no commenting in the CSS file :frowning:

We will have to make sure that the classes specifically for jquery are clear to the users. Again as you said - educating the users so we don't have random CSS classes

applied to tags. Thanks for your time Scotty -appreciate it :slight_smile:





Fuzz

[quote]
Damn about no commenting in the CSS file :frowning:



[/quote]



Hey Fuzz



Sorry, I misunderstood with this one. If you are using an associated design file to populate the WYSIWYG div style drop down (with empty rules that match rules found in one of your main CSS files) I know there are some 'gotchas' - I think I might have even commented against these in wys css file that is associated to the first design I did for you, something about making sure not to have any spaces, carriage returns at the end of it, otherwise the styles won't populate in the drop down?



I actually thought you were looking to output comments with the style drop downs, my bad.



Have you tried adding comments to the WYS CSS? If you add the comments and the drop downs stop working then just remove the comments.



Cheers



Scotty

Hey Scotty,


No I was actually looking at outputting comments in the div style drop down. So my bad - as as you said it's not possible to group using comments.My original post was whether it was possible to just have a class defined in the associated Wysiwyg CSS file, even though the class wasn't defined in any other CSS asset.



I do see the you orsom comments re the gotchas in our files. You are too good to us :slight_smile:



It would be great to group. :frowning:



/—jquery –/

class

class

class