📝 Lukes SnippetsMain SiteMain Site (opens in a new tab)Word RepoWord Repo (opens in a new tab)
GitHubGitHub (opens in a new tab)
  • Home
    • ABN Validation
    • CSS Variables to JSON
    • String to 12hr Time
    • Make All Page Content Editable
    • Pretty Print Json
    • Relative Date Time Display
    • AppDir CORS Middlewear API Route
    • Max Lines
    • Undo Commit But Keep Changes and Staging
    • Apex Bulk Delete Knowledge Articles
    • Static Resource Reference
    • Remove Folder Recursively
Question? Give us feedback → (opens in a new tab)Edit this page
JavaScript
Make All Page Content Editable

Make All Page Content Editable

Make all elements on the page editable via the contentEditable property.

document.querySelectorAll('*').forEach(el => el.contentEditable = true)
String to 12hr TimePretty Print Json

2024 © made by luke.