Search Results for

    Show / Hide Table of Contents
    View Source

    Class RichTextModel

    Represents a rich text model in the Delivery API.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Models.DeliveryApi
    Assembly: Umbraco.Core.dll
    Syntax
    public class RichTextModel

    Constructors

    View Source

    RichTextModel()

    Declaration
    public RichTextModel()

    Properties

    View Source

    Blocks

    Gets or sets the block items embedded in the rich text content.

    Declaration
    public required IEnumerable<ApiBlockItem> Blocks { get; set; }
    Property Value
    Type Description
    IEnumerable<ApiBlockItem>
    View Source

    Markup

    Gets or sets the HTML markup of the rich text content.

    Declaration
    public required string Markup { get; set; }
    Property Value
    Type Description
    string

    Methods

    View Source

    Empty()

    Creates an empty RichTextModel instance.

    Declaration
    public static RichTextModel Empty()
    Returns
    Type Description
    RichTextModel

    A new RichTextModel instance with empty markup and no blocks.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX