# Tiptap Editor for payload and react

This package provides a simple way to use tiptap editor in react and payloadcms

## Setup

### Tiptap Pro Authentication

This package uses Tiptap Pro features that require authentication to access private repositories. To set this up:

1. Copy the `.npmrc.template` file to create your own `.npmrc` file:

   ```bash
   cp .npmrc.template .npmrc
   ```

2. Set up the `TIPTAP_AUTH_TOKEN` environment variable with your Tiptap authentication token:

   **For local development:**
   Add to your shell profile (e.g., `~/.zshrc` or `~/.bash_profile`):

   ```bash
   export TIPTAP_AUTH_TOKEN=your-actual-token
   ```

   Then restart your terminal or run `source ~/.zshrc` (or equivalent for your shell).

   **For CI/CD environments:**
   Add the token as a secret environment variable in your CI platform settings.

3. The `.npmrc` file is excluded from git to prevent committing sensitive credentials.

**NOTE:** This package is a WIP and is not currently extensible.
