Skip to content
OFD Editor
Developer docs

Embed the workspace

Mount a file in your page and connect its lifecycle, templates and business drafts to your system.

Run the repository example

In a workspace with access to QuireKit OFD Editor, use the repository's Node 22 and pnpm versions. The following starts the editor at http://127.0.0.1:8998/. The application entry is supplied through the commercial workspace.

sh

Mount into a page

Give the host an empty element with a defined height. The browser entry uses Vue, Vite and UnoCSS. Use the QuireKit preset and source-scanning configuration from the preview application. Call mountFile(element, file) once the DOM exists, then call the returned cleanup when removing the element or leaving the route. With SSR, load this module during client mount.

recipes/mount.tsts

initialDocument.read(signal) can also fetch bytes through your existing authenticated transport. Respect cancellation when the document changes or the workspace closes. Omitting initialDocument starts a blank document. onSessionChange publishes the current editor and view and receives undefined on teardown.

Connect host services

OptionHost responsibility
documentTemplates / templatePresetsWritable versioned library and optional read-only catalog
drafts / batch / sheetMappingsBusiness records, bulk creation and shared column mappings
printServiceAuthorized queue and receipts
loadSigning / licenseKeySigning service and seal sources, and the deployment license key

Use the mounted session for template operations and printDocument(). The latter commits active text and field values before capturing a native print input. Configure drafts to write back to the business system. When openBusinessDraft returns pending, let the workspace resolve unsaved changes before treating the switch as complete. Session API · Workstation HTTP

OFD Editor · QuireKitGuides and developer interfaces for the QuireKit OFD Editor.