js change contenteditable value

JavaScript
element.setAttribute("contenteditable", false);
Source

Also in JavaScript: