|
|
|
|
|
by blacksmith_tb
1297 days ago
|
|
That made me think... it should be pretty easy to set that attribute on every element in the DOM (overkill, but then it makes every piece of text on the page editable, poof!) I can imagine giving that to not-too-technical users to play with changing things on a page - as long as they could paste a one-liner into the dev console: document.querySelectorAll('*').forEach(function(node){node.setAttribute('contentEditable','true')}); |
|