@fiduswriter/document-template-editor
v0.1.5
Published
Fidus Writer document template editor
Readme
What it does
Provides the full document template editing system for Fidus Writer. Includes a visual template designer, template extraction from existing documents, adjustment of documents to conform to templates, and template import/export.
Exports
| Export | Description |
| ----------------------------- | ----------------------------------------------------------- |
| DocumentTemplateDesigner | Visual designer for creating and editing document templates |
| extractTemplate | Extract a template from an existing Fidus Writer document |
| adjustDocToTemplate | Adjust a document's content to conform to a target template |
| DocumentTemplateExporter | Export templates to .fidustemplate format |
| DocumentTemplateImporter | Import templates from .fidustemplate format |
| DocumentTemplateAdmin | Admin UI for managing individual document templates |
| DocumentTemplateListAdmin | Admin UI for listing all document templates |
| updateTemplateFile | Update an existing template file |
| helpSchema, serializeHelp | Schema definition and serializer for template help text |
Installation
npm install @fiduswriter/document-template-editorUsage
import {
DocumentTemplateDesigner,
extractTemplate,
adjustDocToTemplate,
DocumentTemplateExporter,
DocumentTemplateImporter,
} from "@fiduswriter/document-template-editor";Development
npm install # Install dependencies
npm run build # Compile TypeScript to dist/
npm run typecheck # Check types without emitting
npm run lint # Lint with ESLint
npm run format:check # Check formatting with PrettierLicense
AGPL-3.0 — see LICENSE for details.
