Serializing Docx
Copy paste from DOCX to Slate.
Loading...
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.