`document.execCommand()` wrapper implementing the Command interface