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

Import

EmailNode.create

Create a new email-compatible node from scratch.
The config object accepts all standard TipTap Node options plus the renderToVueEmail method, a function that returns VNodes built with h(), using plain elements or Vuemail components.

renderToVueEmail props

To render a Vuemail component, pass children as its default slot: h(Section, { style }, () => children).

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 renderToVueEmail renderer function. 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 renderToVueEmail when extending:

See also