You can use document.body.contentEditable = true or document.designMode = 'on' to edit content in browser.
document.body.contentEditable = true
document.designMode = 'on'