Created
December 23, 2020 01:42
-
-
Save lukethacoder/305c2e637288beac8521c852c6a76cf8 to your computer and use it in GitHub Desktop.
JS - make every element on a page editable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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