Skip to main content
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.
The config object accepts all standard TipTap Mark options plus the 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.
The second argument is the renderToVueEmail renderer function. It receives the same props as described above.

.configure

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

.extend

Extend an EmailMark with additional behavior:
You can also override renderToVueEmail when extending:

See also