This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /guides/document-authoring/intro.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. Document Authoring developer guides

Welcome to the Document Authoring developer guides. These guides cover setup, library methods, programmatic editing with transactions, spreadsheets, AI-assisted editing, and web app configuration.

If you’re new to Document Authoring, refer to the getting started guide to add authoring to your application. You can also clone the examples repository(opens in a new tab) on GitHub to review implementation options.

The core Document Authoring library runs in the browser. It’s written in TypeScript and uses WebAssembly, so it runs without a server, plugins, or internet access when you self-host assets. Document Authoring AI is optional and uses your own server and model provider. It keeps document reads, validation, and writes bound to the live browser editor.

For the core editor, a server-free setup has these advantages:

  • Less backend work — You don’t need to deploy or maintain backend servers.
  • Lower infrastructure costs — The client handles rendering and processing.
  • Security and privacy — Your app doesn’t send documents to a third party.

Guides

Refer to these guides to build with Document Authoring:

  • Document data and formats — Import, export, use DocJSON, and create portable locations.
  • Navigation — Use bookmarks, a table of contents, and document locations.
  • Editing content — Edit text, formatting, lists, tables, images, shapes, footnotes, endnotes, bookmarks, and table of contents entries.
  • Page layout — Configure sections, page setup, margins, headers, and footers.
  • Comments — Set review authors, add comments, and manage threaded discussions.
  • Tracked changes and editor modes — Switch modes and create tracked revisions.
  • Spreadsheets — Edit cells, formulas, and sheets, import XLSX, save SheetJSON, and export XLSX or PDF.
  • Customizing the editor — Customize actions, toolbar items, fonts, localization, units, and spellcheck.
  • Events and integration — Listen for events, switch documents, autosave changes, and clean up.
  • Copy/paste and HTML interoperability — Use rich clipboard workflows and HTML-based interchange.
  • AI — Build agentic document assistants or bounded workflows for reviewable AI edits.
  • CSP/firewall rules — Define security policies for CDN-hosted assets.
  • Self-hosting assets — Deploy and maintain assets on your own infrastructure.