Docs
Serializing Docx

Serializing Docx

Copy paste from DOCX to Slate.

Docx

Easily import content from Microsoft Word documents by simply copying and pasting the Docx content into the editor.

Features

  • Convert DOCX content to a Slate value.

Installation

npm install @udecode/plate-docx @udecode/plate-juice

Usage

DOCX -> Slate

import { JuicePlugin } from '@udecode/plate-juice';
import { DocxPlugin } from '@udecode/plate-docx';
 
const plugins = [
  // ...otherPlugins,
  DocxPlugin,
  JuicePlugin,
];

Given pasted HTML, @udecode/plate-juice is used to inline CSS properties into the style attribute.

Plugins

DocxPlugin