@canvist/extension-text-style
TipTap's textStyle mark and the styles on it: colour, background colour, font family, font size, and line height, for canvist.
This package exports textStyle, color, backgroundColor, fontFamily, fontSize, lineHeight from @canvist/core/extras, so you can import them on their own, as TipTap ships each extension. It loads no WebAssembly: an engine package brings the module, and these extensions are in the full modules, @canvist/headless/full and @canvist/collab/full, so create the engine from one of those.
npm install @canvist/headless @canvist/extension-text-style
import { textStyle } from "@canvist/extension-text-style";
import { createEngine } from "@canvist/headless/full";
const engine = await createEngine([textStyle]);
The extension catalogue lists each extension's commands, queries, and keys.
License
Unlicense