Canvas-based document editor for the web. High-performance rendering via HTML5 Canvas with pixel-perfect pagination, rich text formatting, tables, images, and print support.
| Package | Description | Version |
|---|---|---|
| @windoc/core | Canvas editor engine | 0.3.29 |
| @windoc/react | React bindings & composable UI | 0.3.29 |
npm install @windoc/core @windoc/react
import { Editor } from '@windoc/react' import '@windoc/core/style.css' import '@windoc/react/style.css' function App() { return ( <Editor defaultValue={{ main: [{ value: 'Hello, Windoc!' }] }} options={{ margins: [40, 40, 40, 40], placeholder: { data: 'Start typing...' }, }} onReady={(editor) => console.log('Ready!', editor)} /> ) }
- Canvas Rendering — Pixel-perfect document rendering via HTML5 Canvas
- Pagination — Automatic page breaking with configurable sizes (A4, Letter, etc.)
- Rich Text — Bold, italic, underline, strikeout, color, highlight, fonts
- Tables — Merge/split cells, borders, row/column operations
- Images — Inline images with resize, rotate, alignment
- Headers & Footers — Per-page headers, footers, page numbers
- Watermarks — Configurable text watermarks
- Lists — Ordered and unordered lists
- Print — Native print with accurate pagination
- Composable UI — Mix and match toolbar/footer components or build your own
- Extensible — Plugins, custom shortcuts, custom context menus
yarn install yarn build
To run the playground locally with live reload:
# Terminal 1 — watch core & react yarn dev # Terminal 2 — start playground cd playground && yarn dev
Contributions are welcome! Please read the Contributing Guide before opening a pull request.
MIT
