tiptap/docs/api/marks/text-style.md
2021-09-16 14:41:25 +02:00

1.2 KiB
Raw Blame History

TextStyle

Version Downloads

This mark renders a <span> HTML tag and enables you to add a list of styling related attributes, for example font-family, font-size, or color. The extension doesnt add any styling attribute by default, but other extensions use it as the foundation, for example FontFamily or Color.

Installation

# with npm
npm install @tiptap/extension-text-style

# with Yarn
yarn add @tiptap/extension-text-style

Commands

Command Parameters Description
removeEmptyTextStyle Remove <span> tags without an inline style.

Source code

packages/extension-text-style/

Usage