contentEditable
by luka8088 on Jun.15, 2009, under Jokes, Web
Few weeks ago, while talking with my friend, he again said he wanted to make web based code editor, you know, like notepad2 or notepad++, but web based… So I decided to try to write something…. While reading online docs and other people posts, I found an interesting thing, setting attribute contentEditable=”true” on any html element, makes it’s content editable by user, and it even works in Internet Explorer !!
The funny part is, you can put it on body, and then, entire page is editable by user ![]()
You can try to edit my blog: here (just refresh to get everything back as it was)
You can try this Edit Mode switcher by putting it in your bookmarks, add a new Bookmark (or Favorite) and put below code as a href, then on any page you can use that Bookmark to switch to Edit Mode, then change any part of the page that you want, and then turn Edit Mode back off
javascript:document.body.contentEditable=document.body.contentEditable.length==4?false:true;void(0);