CoreMedia CKEditor 5 Plugins
    Preparing search index...
    • Immediately resolving promise to retrieve command. Rejected with Error when command is not found. Rejecting with CommandNotFoundError on error.

      Parameters

      • editor: Editor

        editor instance

      • commandName: string

        command name to search for

      Returns Promise<Command>

      ifCommand(editor, commandName)
      .then(handler)
      .catch(optionalCommandNotFound);