Sets block styles for the style dropdown of the rich text (HTML) editor. Has no effect on other editors. Add styles in the format "{tag}.{className}|{displayLabel}". Only the tag name is required, the rest is optional. Examples: "p.extra-padding|Extra padding", "pre|Code block", "blockquote". This replaces the default style dropdown with custom styles. To add inline styles, use the RichTextEditorStyleAttribute instead.

[AttributeUsageAttribute(AttributeTargets.Property)]
public sealed class RichTextEditorStylesAttribute: IContentPropertyAttribute
Inheritance:
ObjectAttributeRichTextEditorStylesAttribute
Implements:
IContentPropertyAttribute

Constructors

RichTextEditorStylesAttribute(string)

Methods

Apply(ContentPropertyDefinition)