Skip to content

TipTap Content

Overview

The TipTap Content service handles rich text processing for the TipTap editor used throughout the Filament admin panel. It normalizes content between storage (JSON/TipTap format) and display (HTML), extracts plain text, and detects empty content.

Key Methods

MethodDescription
hasMeaningfulContent(content)Check if TipTap content has any real text beyond empty tags
normalizeTipTapContent(content)Normalize to JSON string or null
decodeTipTapContent(content)Decode stored content into TipTap document array
extractTipTapText(node)Recursively extract all text from a TipTap doc tree

Key Files

app/Services/TipTap/ContentService.php