Skip to main content
EmailNode extends TipTap’s Node class with an additional renderToReactEmail() method that controls how the node is serialized when exporting to email HTML via composeReactEmail.

Import

EmailNode.create

Create a new email-compatible node from scratch.
The config object accepts all standard TipTap Node options plus the renderToReactEmail method.

renderToReactEmail props

EmailNode.from

Wrap an existing TipTap node with email serialization support. This is useful when you want to reuse a community TipTap extension and add email export support without rewriting it.
The second argument is the renderToReactEmail renderer component. It receives the same props as described above.

.configure

Configure options on an EmailNode (same as TipTap’s .configure()):

.extend

Extend an EmailNode with additional behavior:
You can also override renderToReactEmail when extending:

See also