Skip to content

Latest commit

 

History

History
39 lines (34 loc) · 1.23 KB

File metadata and controls

39 lines (34 loc) · 1.23 KB
title Modules
sidebarTitle Overview
keywords superdoc modules, editor modules, document features, modular architecture, plugin system

Modules are opt-in features configured through the SuperDoc modules option. Enable only what you need.

const superdoc = new SuperDoc({
  selector: '#editor',
  document: 'contract.docx',
  modules: {
    toolbar: { selector: '#toolbar' },
    comments: { allowResolve: true },
    collaboration: { ydoc, provider },
    contextMenu: { includeDefaultItems: true }
  }
});

Available modules

Real-time multi-user editing with Yjs Threaded discussions and annotations Customizable formatting controls Right-click actions and custom commands

Each module is configured via modules.<name> in the SuperDoc configuration. See individual module pages for all available options.