Const
Suggested alternative catch handler, if a command is not found. It will trigger a debug log statement.
catch
ifCommand(editor, commandName) .then(handler) .catch(optionalCommandNotFound); Copy
ifCommand(editor, commandName) .then(handler) .catch(optionalCommandNotFound);
error to ignore
Suggested alternative
catchhandler, if a command is not found. It will trigger a debug log statement.