🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@onlyoffice/doceditor-types

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@onlyoffice/doceditor-types

TypeScript type definitions for the ONLYOFFICE Document Editor API

latest
Source
npmnpm
Version
9.4.0
Version published
Maintainers
1
Created
Source

@onlyoffice/doceditor-types

TypeScript type definitions for the ONLYOFFICE Document Editor API.

Provides full IntelliSense, type checking, and inline documentation for:

  • Config — the editor initialization config (Config, ConfigNormal, ConfigEmbedded)
  • DocEditor — typed method signatures for the editor instance
  • Events — all editor event callback types
  • Permissions, Customization, Document Info — every nested config section

Install

npm install @onlyoffice/doceditor-types

Usage

import type { Config, DocEditor } from "@onlyoffice/doceditor-types";

const config: Config = {
  documentType: "word",
  document: {
    fileType: "docx",
    key: "unique-key",
    title: "Example.docx",
    url: "https://example.com/document.docx",
  },
  editorConfig: {
    callbackUrl: "https://example.com/callback",
    lang: "en",
  },
};

// Pass to DocsAPI.DocEditor constructor
const editor = new DocsAPI.DocEditor("placeholder", config);

Versioning

This package version tracks the ONLYOFFICE Docs Server version.

Package versionDocs Server version
9.4.09.4.0

Documentation

Full API reference: https://api.onlyoffice.com/docs/docs-api/usage-api/config/

License

Apache-2.0

Keywords

onlyoffice

FAQs

Package last updated on 02 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts