Get the designMode:
document.designMode;
Try it Yourself »
Make the document editable:
document.designMode = "on";
Try it Yourself »
The designMode
property sets or returns if the document is editable.
document.designMode
document.designMode = "on|off"
Value | Description |
off | Default. The document is not editable. |
on | The document is editable. |
document.designMode
is supported in all modern browsers:
Chrome | Edge | Firefox | Safari | Opera | IE |
Yes | Yes | Yes | Yes | Yes | 11 |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!