Represents an instance of editable content within the MegaScript context.

interface EditableContentObjectInstance {
    Body: string;
    GetHtml: ((tokenObject: object) => string);
    Id: number;
    SystemName: string;
    Title: string;
}

Properties

Body: string

Gets the body content of the editable content.

GetHtml: ((tokenObject: object) => string)

Generates the HTML content with the provided tokens.

Type declaration

    • (tokenObject): string
    • Parameters

      • tokenObject: object

        The object containing tokens for replacement.

      Returns string

      The HTML content with tokens replaced.

Id: number

Gets the ID of the editable content.

SystemName: string

Gets the system name of the editable content.

Title: string

Gets the title of the editable content.