<span> element with inline styles.
Installation
Usage
Configuration Options
HTML attributes to add to the span element.
When enabled, merges the styles of nested spans into the child span during HTML parsing. This prioritizes the style of the child span and is used when parsing content created in other editors.
Commands
toggleTextStyle(attributes?)
Toggle a text style with the specified attributes.removeEmptyTextStyle()
Remove spans without inline style attributes.Usage with Other Extensions
The TextStyle extension is typically used as a foundation for other styling extensions:Technical Details
- Priority: 101 (higher than most other marks to ensure proper style application)
- HTML Element: Renders as
<span>with inline styles - Parsing: Only parses
<span>elements that have astyleattribute - Nested Spans: By default, merges styles from nested spans up to 20 levels deep