Yes, we heard you the first time. The code snippet kn0where posted has the same effect. :)
I looked into this some more, and I think the actual difference between `document.documentElement.contentEditable` and `document.designMode` is subtle and probably mostly just in principle: since contentEditable is set on elements, someone with only access DOM access could potentially toggle it. But someone with only DOM access cannot turn `document.designMode` off.
6 comments
[ 2.8 ms ] story [ 12.4 ms ] threadFor example, let's say your making mockups and want to change some text. This lets you do that really quickly.
I looked into this some more, and I think the actual difference between `document.documentElement.contentEditable` and `document.designMode` is subtle and probably mostly just in principle: since contentEditable is set on elements, someone with only access DOM access could potentially toggle it. But someone with only DOM access cannot turn `document.designMode` off.
`document.designMode` is a web standard and is supported by Firefox, Safari, IE, etc.
https://developer.mozilla.org/en-US/docs/Web/API/Document/de...