EmailMark extends TipTap’s Mark class with an additional renderToVueEmail() method
that controls how the mark is serialized when exporting to email HTML via
composeVueEmail.
Marks are used for inline formatting like bold, italic, links, and custom text annotations.
Import
EmailMark.create
Create a new email-compatible mark from scratch.renderToVueEmail method, a function that returns VNodes built with h().
renderToVueEmail props
EmailMark.from
Wrap an existing TipTap mark 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 anEmailMark (same as TipTap’s .configure()):
.extend
Extend anEmailMark with additional behavior:
renderToVueEmail when extending:
See also
- Custom Extensions — tutorial on building custom extensions
EmailNode— the equivalent class for block nodescomposeVueEmail— the function that callsrenderToVueEmail