Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 641 Bytes

File metadata and controls

26 lines (19 loc) · 641 Bytes

Replace Content Example

A React example demonstrating how to replace document content with HTML or JSON using SuperDoc.

Features

  • Load DOCX documents
  • Replace entire document or selection with custom content
  • Switch between HTML and JSON input formats
  • Side panel with content replacement controls

Usage

  1. Load a document using "Load Document" button
  2. Open the side panel using the tab on the right
  3. Choose replacement scope (Document or Selection)
  4. Select content type (HTML or JSON)
  5. Enter your content in the textarea
  6. Click "Replace content" to apply changes

Running

npm install
npm run dev