@platejs/docx-io@52.2.0

udecode/plate@platejs/docx-io@52.2.0Jan 20, 2026by github-actions[bot]

AI Summary

This release introduces a comprehensive DOCX import and export system for the Plate editor, including functions to convert DOCX files to Plate nodes and export Plate content to Word files.

Key Highlights

  • Added `importDocx` to convert DOCX files to Plate nodes with comment extraction
  • Added `exportToDocx` and `downloadDocx` functions for exporting content to Word
  • Introduced `DocxExportPlugin` with `editor.api.docxExport` and `editor.tf.docxExport` methods
  • Included static DOCX components for rendering callouts, code blocks, tables, and TOCs

New Features

  • DOCX import and export package
  • Default CSS styles (`DOCX_EXPORT_STYLES`)
  • Static DOCX components (CalloutElementDocx, CodeBlockElementDocx, etc.)

Full Release Notes

### Minor Changes

-   [#4814](https://github.com/udecode/plate/pull/4814) by [@felixfeng33](https://github.com/felixfeng33) – Add DOCX import/export package:

    **Import:**

    -   `importDocx`: Convert DOCX files to Plate nodes with comment extraction

    **Export:**

    -   `exportToDocx`: Convert Plate content to DOCX blob
    -   `downloadDocx`: Download DOCX files
    -   `exportEditorToDocx`: Export and download in one call
    -   `DocxExportPlugin`: Plugin with `editor.api.docxExport` and `editor.tf.docxExport` methods
    -   `DOCX_EXPORT_STYLES`: Default CSS styles for Word rendering

    **DOCX Static Components** (in existing static files):

    -   `CalloutElementDocx`
    -   `CodeBlockElementDocx`, `CodeLineElementDocx`, `CodeSyntaxLeafDocx`
    -   `ColumnElementDocx`, `ColumnGroupElementDocx`
    -   `EquationElementDocx`, `InlineEquationElementDocx`
    -   `TocElementDocx`