Adds a single style to the style dropdown of the rich text (HTML) editor.Has no effect on other editors. This replaces the default style dropdown with custom styles. You can also set multiple styles at once with the RichTextEditorStylesAttribute.

[AttributeUsageAttribute(AttributeTargets.Property)]
public sealed class RichTextEditorStyleAttribute: IContentPropertyAttribute
Inheritance:
ObjectAttributeRichTextEditorStyleAttribute
Implements:
IContentPropertyAttribute

Constructors

RichTextEditorStyleAttribute(string, string)

Properties

Title Sets the title to display in the dropdown list.
ClassName Sets the class name to apply to the element.
IsInline Set to true for inline styles. If false, the style will be applied to the nearest block-level element.

Methods

Apply(ContentPropertyDefinition)