Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 336 Bytes

make-everything-on-a-website-editable.md

File metadata and controls

9 lines (6 loc) · 336 Bytes

Make everything on a website editable

There is a neat trick to render an entire HTML document editable. Simply type this into the console to turn designMode on:

document.designMode = "on";

The content of every text element in the document will then be editable (as if you set contenteditable="true" on each of them).