Hacker News new | past | comments | ask | show | jobs | submit login

Funny...I can't see the source code. But I can edit the stylesheet.

This is pretty cool.

1) How is it done?

2) How are you hiding how it's done?

Edit: Is it done through a Chrome extension?




It looks like he just uses the "contenteditable" property ( http://valums.com/edit-in-place/ ) to make it editable, and then displays it as a word-wrap: pre element.

While I can't think of any immediate applications, I had never realized that contenteditable was so widely supported. I'm going to have to try using it in my next project...


There's no such thing as a 'word-wrap: pre element'.


The STYLE element has the attribute 'contenteditable' and the CSS style 'display: block'.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: