Skip to content

Instantly share code, notes, and snippets.

@lukethacoder
Created December 23, 2020 01:42
Show Gist options
  • Save lukethacoder/305c2e637288beac8521c852c6a76cf8 to your computer and use it in GitHub Desktop.
Save lukethacoder/305c2e637288beac8521c852c6a76cf8 to your computer and use it in GitHub Desktop.
JS - make every element on a page editable
document.querySelectorAll('*').forEach(el => el.contentEditable = true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment