The Document.queryCommandEnabled() method reports whether or not the specified editor command is enabled by the browser.
Document.queryCommandEnabled()
external bool queryCommandEnabled(String commandId);