Provides a catch handler, if a recommended command is not found. It will trigger a warning log statement and a debug log statement with more details.
catch
optional effect, what will happen if the plugin is missing
optional logger to use instead of default
ifCommand(editor, commandName) .then(handler) .catch(recommendCommand("Feature lorem ipsum won't work.")); Copy
ifCommand(editor, commandName) .then(handler) .catch(recommendCommand("Feature lorem ipsum won't work."));
Provides a
catch
handler, if a recommended command is not found. It will trigger a warning log statement and a debug log statement with more details.