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.renderToVueEmail method, a function that returns VNodes built with h(), using plain
elements or Vuemail components.
renderToVueEmail 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.renderToVueEmail renderer function. It receives the same props
as described above.
.configure
Configure options on anEmailNode (same as TipTap’s .configure()):
.extend
Extend anEmailNode with additional behavior:
renderToVueEmail when extending:
See also
- Custom Extensions — tutorial on building custom nodes
EmailMark— the equivalent class for inline markscomposeVueEmail— the function that callsrenderToVueEmail