contentEditable attribute

Spain
November 18, 2008 12:43pm CST
Basically you set up contenteditable (with no value) attribute on any tag, and you can edit it live! The changes obviously do not directly save the next time the user visits the page. It's fun to set it on the body tag of normal pages, especially the ones with CSS and images, then you can even resize them! I find this really fun to do, and it could be useful for webapps like RTF (Rich Text Format) editors, etc. With JavaScript or any other language [JavaScript is easiest] you can take the innerHTML of that tag and then you can let the user download the edits easily.
1 response
• Netherlands
18 Nov 08
It's a great good working way but I rather use PHP and MySQL and a text editor in javascript with CSS combined to go with it.
1 person likes this
• Spain
18 Nov 08
Yes, PHP is great. But I meant the best way for exporting changes by the user. And I was not recommending it for uses with page designing, just as a service to use by the user.