Fog Creek Software
Discussion Board

Knowledge Base
Terry's Tips
Darren's Tips

Template Editing Issue

I tried modifying the simple.html template by changing properties of the headline and sitename. I found that if I doubleclick on the word "headline", in {$.headline$} and change, say the font size or color, I get a script error when previewing. In order to change a property I had to select the entire string, ie. the whole "{$.headline$}".
I can't see any reason to allow changing the property for just the .headline, so maybe you should autoselect everything between the {}'s when someone doubleclicks anywhere inside them.

Elan Dekel
Sunday, November 18, 2001

interesting idea... there is a legitimate reason you might want to *select* a word inside CityScript (e.g. to replace it with another word) -- but maybe we could expand the selection automatically when you applied any formatting to any selection which is less than the whole CityScript blob.

Joel Spolsky
Sunday, November 18, 2001

*  Recent Topics

*  Fog Creek Home