Hope to do something in a brand new year. r{{ def('switchDesignMode', function switchDesignMode(el){ let mode=['false', 'true']; let content = document.getElementById(el); content.contentEditable = mode[!mode.indexOf(content.contentEditable) + 0] || 'true'; }) }} r{{ btn('edit', function switchAllContent(){ ['main-title', 'sub-title', 'content'].forEach(switchDesignMode); }) }}