Paste from Word without the mess
Word's clipboard HTML is full of invisible styling, dead image links, and equations flattened into screenshots. wordpaste cleans all of it — and keeps the equations editable.
Without wordpaste
what a typical editor keeps
With wordpaste
a real editor — click an equation
Loading the editor…
Both panels are live. The right one is a real Tiptap editor — click any equation to change it, or paste straight from Word. The left one's Edit HTML tab lets you change the clipboard HTML by hand and watch the result update. Everything runs in your browser; nothing is uploaded.
The code doing it
That is the whole integration. The same one line works in raw ProseMirror, because they share the prop.
import { Editor } from '@tiptap/core';
import StarterKit from '@tiptap/starter-kit';
import { transformPastedHTML } from 'wordpaste';
new Editor({
element,
extensions: [StarterKit],
editorProps: { transformPastedHTML },
});
Runnable examples
Single HTML files — no install, no build. Open one and paste from Word.