PHPackages                             verbb/tiptap - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. verbb/tiptap

ActiveLibrary

verbb/tiptap
============

A Craft CMS library for working with Tiptap rich text content.

1.0.0(1mo ago)0133MITPHPPHP ^8.2CI passing

Since Jul 11Pushed 1w agoCompare

[ Source](https://github.com/verbb/tiptap)[ Packagist](https://packagist.org/packages/verbb/tiptap)[ GitHub Sponsors](https://github.com/verbb)[ RSS](/packages/verbb-tiptap/feed)WikiDiscussions craft-5 Synced 1w ago

READMEChangelog (2)Dependencies (3)Versions (2)Used By (0)

Tiptap for Craft CMS
====================

[](#tiptap-for-craft-cms)

Tiptap is a library for Craft plugins and modules for working with rich text content produced by [`@verbb/plugin-kit-tiptap-core`](https://github.com/verbb/plugin-kit/tree/main/plugin-kit-tiptap-core) in [verbb/plugin-kit](https://github.com/verbb/plugin-kit). It normalizes stored JSON, renders HTML and plain text server-side, and provides Twig filters for templates.

> This isn't a Craft plugin for end-users. Install it in your own Craft plugins and modules to normalize, render, and output Tiptap content.

Install
-------

[](#install)

You can install the package via Composer:

```
composer require verbb/tiptap
```

Bootstrap (optional)
--------------------

[](#bootstrap-optional)

Register the Yii module to auto-load Twig filters:

```
// config/app.php
return [
    'modules' => [
        'tiptap' => \verbb\tiptap\Tiptap::class,
    ],
    'bootstrap' => ['tiptap'],
];
```

Or register the Twig extension manually in your plugin's `init()`:

```
use verbb\tiptap\twig\Extension;

Craft::$app->getView()->registerTwigExtension(new Extension());
```

Usage
-----

[](#usage)

As a quick example, use the following to normalize stored content and render it in Twig or PHP.

### Settings model

[](#settings-model)

```
use verbb\tiptap\RichText;

class Settings extends Model
{
    public RichText $footerCopy;

    public function __construct($config = [])
    {
        $this->footerCopy = RichText::from(null);
        parent::__construct($config);
    }

    public function setFooterCopy(mixed $value): void
    {
        $this->footerCopy = RichText::from($value);
    }
}
```

The value serializes to a content array (`doc.content`) for project config and the database.

### Twig

[](#twig)

```
{{ settings.footerCopy|tiptapHtml }}
{{ settings.footerCopy|tiptapPlain }}
{{ settings.footerCopy|tiptapToken }}
```

### PHP

[](#php)

```
use verbb\tiptap\RichText;

$content = RichText::from($settings->footerCopy);

$content->isEmpty();
$content->getSchema();
$content->toHtml();
$content->toPlainText();
$content->toTokenString();
$content->toJson();
```

### Resolving references

[](#resolving-references)

Pass a callback to post-process rendered output (for example, Formie submission tokens):

```
$html = $content->toHtml(fn (string $html) => References::parseContent($html, $submission));
```

### Feed Me

[](#feed-me)

```
use verbb\tiptap\feedme\ContentParser;

public function parseField(): string
{
    return ContentParser::parse($this->fetchValue(), [
        // new MyCustomNode(),
    ]);
}
```

Be sure to check out the full [documentation](https://verbb.io/packages/tiptap).

Storage format
--------------

[](#storage-format)

Store the **content array** (`doc.content`), not the full `{ type: 'doc' }` wrapper. This matches `@verbb/plugin-kit-tiptap-core` and `@verbb/plugin-kit-web` serialization.

Documentation
-------------

[](#documentation)

Visit the [Tiptap package page](https://verbb.io/packages/tiptap) for all documentation and developer resources.

Credits
-------

[](#credits)

Built on [ueberdosis/tiptap-php](https://github.com/ueberdosis/tiptap-php).

Sponsor
-------

[](#sponsor)

Auth is licensed under the MIT license, meaning it will always be free and open source – we love free stuff! If you'd like to show your support to the plugin regardless, [Sponsor](https://github.com/sponsors/verbb) development.

[ ![Verbb](https://camo.githubusercontent.com/98f2680f5948987cd8f4b418d67159eb0befb6da92060f286671b05bf39d40bd/68747470733a2f2f76657262622e696f2f6173736574732f696d672f76657262622d70696c6c2e737667)](https://verbb.io)

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance94

Actively maintained with recent releases

Popularity14

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

51d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/26374352?v=4)[Verbb](/maintainers/verbb)[@verbb](https://github.com/verbb)

---

Top Contributors

[![engram-design](https://avatars.githubusercontent.com/u/1221575?v=4)](https://github.com/engram-design "engram-design (4 commits)")

---

Tags

tiptapprosemirrorCraftcraftcmsrich text

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/verbb-tiptap/health.svg)

```
[![Health](https://phpackages.com/badges/verbb-tiptap/health.svg)](https://phpackages.com/packages/verbb-tiptap)
```

###  Alternatives

[verbb/vizy

A flexible visual editor field for Craft.

4252.4k1](/packages/verbb-vizy)[craftcms/feed-me

Import content from XML, RSS, CSV or JSON feeds into entries, categories, Craft Commerce products, and more.

293967.9k41](/packages/craftcms-feed-me)[verbb/formie

The most user-friendly forms plugin for Craft.

102406.3k79](/packages/verbb-formie)[verbb/hyper

A user-friendly links field for Craft.

24158.0k15](/packages/verbb-hyper)[verbb/events

A full-featured plugin for event management and ticketing.

2412.3k](/packages/verbb-events)[verbb/icon-picker

A slick field to pick icons from. Supports SVGs, Sprites, Webfonts, Font Awesome and more.

16174.4k7](/packages/verbb-icon-picker)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
