import React, { useState } from "react"; import { RichTextEditor } from "./index"; const RichTextEditorDemo: React.FC = () => { const [content, setContent] = useState( "

Welcome to the new TipTap rich text editor! This editor supports bold, italic, underline, and strikethrough text formatting.

Features

This is a blockquote example.
" ); const handleSave = () => { console.log("Saving content:", content); // Here you would typically save to your backend }; const handleLoad = () => { // Example of loading content const loadedContent = "

Loaded content from backend!

"; setContent(loadedContent); }; return (

TipTap Rich Text Editor Demo

Current Content (HTML Format):

{content}
); }; export default RichTextEditorDemo;