manually change contenteditable html in JS code example Example: js change contenteditable value element.setAttribute("contenteditable", false);