Sie sind nicht angemeldet.

1

Dienstag, 25. Januar 2011, 09:27

Bug with CSS for textfield

I used the textfield plugin, and the krpanoJS deals with the CSS parameter slightly differently than the Flash version, which means I had to use 2 different versions.

In Flash, you specify the selector as well as the rules, e.g.

Quellcode

1
css=" p { font-family: Trebuchet MS,Helvetica, Arial, Sans-serif; font-size: 18px; color: #ffffff;  } "



which allows you to set styles on different elements, e.g. links

In the JS version, the code is applied within an inline style to the text field so the above code fails - you have to provide

Quellcode

1
css=" font-family: Trebuchet MS,Helvetica, Arial, Sans-serif; font-size: 18px; color: #ffffff;  "



Just in case anyone else has similar problems. Maybe it could be improved in future versions to bring the two in line?

2

Dienstag, 25. Januar 2011, 15:00

that is good to know, thank you.

3

Dienstag, 25. Januar 2011, 16:31

Hi,

I will try to fix/solve that, but that's unfortuntaly tricky problem, so I can say when that will be ready,

best regards,
Klaus

4

Donnerstag, 27. Januar 2011, 20:35

Perhaps it could be resolved more easily by allowing you to apply a CSS class or ID to the textfield HTML (maybe based on plugin name?) - that way detailed styling could be applied, with it defined in the HTML container or external CSS file.