Site LogoReverie

Document DesignMode

Web/HTML

document.designMode controls whether the entire document is editable. Valid values are "on" and "off".

// Get the designMode
const mode = document.designMode
 
// Make the document editable
document.designMode = 'on' 

Ref: Document: designMode property