Back to packages
@bayonai/rich-text-editor
v0.1.2
React 19

AI Review Draft

A review-ready draft that demonstrates how host apps can keep AI prompts, review tasks, and final prose in the same structured document.

AI-assisted editorial workflow

AI Review Draft

A review-ready draft that demonstrates how host apps can keep AI prompts, review tasks, and final prose in the same structured document.

Back to examples
AI review
Editorial workflow
Host-owned AI

AI review workflow example

This example treats the editor as an AI-assisted review surface. The host app can send sanitized blocks to an AI workflow, render feedback, and still keep the final document under user control.

Edit the review checklist or add a final decision in the empty block at the end.87 words / 1 min read

Document contract

87

Words

1

Min read

8

Blocks

5

Types

Plain text output

AI review pass for launch copy

Review goal Make the package docs feel more obviously useful to engineers evaluating the editor. The page should show live behavior, data contracts, integration boundaries, and examples that resemble real product work. Do not ask users to believe the editor is good. Let them edit it, inspect it, and see what it returns. Confirm the copy says what the package actually does Show host-owned boundaries for storage and AI policy Add one more concrete example before publishing const payload = { title, blocks: sanitizeRichTextBlocks(contentBlocks), plainText: richTextBlocksToPlainText(contentBlocks), };