office-tiptap-richtext

Validate Tiptap rich-text documents during CT_office editor save/load and migrations.

Updated Mar 3, 2026
One-click install
npx skills add https://github.com/createtree2017/createtree-office --skill office-tiptap-richtext
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: office-tiptap-richtext
Source: https://github.com/createtree2017/createtree-office/tree/main/.agents/skills/office-tiptap-richtext
Command: npx skills add https://github.com/createtree2017/createtree-office --skill office-tiptap-richtext

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prevents CT_office manual editor content from being lost, corrupted, or malformed when saving, converting, migrating, or rendering Tiptap-based rich-text documents.

Core Features & Use Cases

  • Preserves the existing Tiptap document structure: keeps the stored Tiptap JSON/document format intact instead of guessing or re-encoding.
  • Guards against invalid writes: blocks empty strings, invalid JSON, and partial documents from being persisted.
  • Supports safe migration and UI changes: validates by reading back, checking editor flows (save/load/preview/cancel), and defers migration until backup and verification are confirmed.
  • Use case: when a developer updates the manual editor UI or introduces conversion logic, this skill helps ensure previously saved manual bodies still open and render correctly after refresh.

Quick Start

Use the office-tiptap-richtext skill to review the CT_office manual editor save/load and conversion logic before changing anything that could affect stored Tiptap content.

Frequently Asked Questions about office-tiptap-richtext

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent Tiptap rich-text content corruption during editor save and load?

To prevent Tiptap rich-text content corruption during editor save and load, you validate the stored JSON document format and add readback checks. This blocks empty strings and partial documents from persisting, ensuring manual bodies render correctly after UI refreshes.

Why does my Tiptap editor render malformed content after a schema adjustment?

Tiptap editors render malformed content after schema adjustments when stored document structures are not preserved or re-encoded incorrectly. Applying validation checks to the existing Tiptap JSON ensures previously saved manual bodies open correctly without structural loss.

What is the best way to validate Tiptap JSON before migrating manual editor content?

The best way to validate Tiptap JSON before migrating manual editor content is to defer migration until backup and verification are confirmed. This process checks editor flows like save, load, and preview to avoid persisting invalid document states.

Can I safely update the manual editor UI without losing existing Tiptap document structures?

You can safely update the manual editor UI without losing existing Tiptap document structures by applying validation and readback checks. This keeps the stored Tiptap JSON intact and guards against invalid writes during UI changes and conversions.

How do I stop empty strings or invalid JSON from persisting in a Tiptap manual editor?

To stop empty strings or invalid JSON from persisting in a Tiptap manual editor, implement guards that block invalid writes. Validating the stored Tiptap document format prevents empty or malformed persistence and ensures correct rendering.

Does office-tiptap-richtext support content migration for CT_office manual bodies?

Yes, office-tiptap-richtext supports content migration for CT_office manual bodies by validating stored Tiptap document formats. It defers migration until backup and verification are confirmed, preventing partial or invalid document states during conversions.