A React example demonstrating how to replace document content with HTML or JSON using SuperDoc.
- Load DOCX documents
- Replace entire document or selection with custom content
- Switch between HTML and JSON input formats
- Side panel with content replacement controls
- Load a document using "Load Document" button
- Open the side panel using the tab on the right
- Choose replacement scope (Document or Selection)
- Select content type (HTML or JSON)
- Enter your content in the textarea
- Click "Replace content" to apply changes
npm install
npm run dev