CoreMedia CKEditor 5 Plugins
    Preparing search index...

    Function recommendCommand

    • 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.

      Parameters

      • effectIfMissingMessage: string = ""

        optional effect, what will happen if the plugin is missing

      • logger: Logger = commandsLogger

        optional logger to use instead of default

      Returns CommandNotFoundErrorHandler

      ifCommand(editor, commandName)
      .then(handler)
      .catch(recommendCommand("Feature lorem ipsum won't work."));