remove gridsome
This commit is contained in:
25
docs/api/marks/text-style.md
Normal file
25
docs/api/marks/text-style.md
Normal file
@@ -0,0 +1,25 @@
|
||||
# TextStyle
|
||||
[](https://www.npmjs.com/package/@tiptap/extension-text-style)
|
||||
[](https://npmcharts.com/compare/@tiptap/extension-text-style?minimal=true)
|
||||
|
||||
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 doesn’t add any styling attribute by default, but other extensions use it as the foundation, for example [`FontFamily`](/api/extensions/font-family) or [`Color`](/api/extensions/color).
|
||||
|
||||
## Installation
|
||||
```bash
|
||||
# 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/](https://github.com/ueberdosis/tiptap/blob/main/packages/extension-text-style/)
|
||||
|
||||
## Usage
|
||||
<tiptap-demo name="Marks/TextStyle"></tiptap-demo>
|
||||
Reference in New Issue
Block a user