document.addEventListener("DOMContentLoaded", function(event) { // OnlyOffice var onlyoffice = document.getElementById("onlyoffice"); if (onlyoffice) { onlyoffice.disabled = true; } });