Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2006-11-03 02:56:55

baptiste
New member
Registered: 2006-11-03
Posts: 1

SuperClean prompt defaults

I've been trying to figure out the config syntax that will let me set the default checkboxes for the SuperClean prompt. By default, they are all checked. I'd like to be able to set which filters are checked by default.

I've looked everywhere for an example and tried every possible combination I could think of to get it set, but no luck.

I figured it might be as simple as

xinha_config.SuperClean.filters.filtername.checked = true;

where filtername is the actual filter like 'tidy'.

no luck. So I've tried a variety of variations, but haven't managed to figure out the right way.  This may be a silly question for a good JavaScript programmer, but I'll admit upfront my JavaScript is not at that level. I was able to override the filters array, but had to include a label as well for each filter (i.e. xinha_config.SuperClean.filters = { filtername : { label : 'label text', checked : true }}). I'd prefer to just tweak the checked element and leave the default prototype label values.

Any hints?

Thanks!

Mike

Offline

Board footer

Powered by FluxBB