Sign up (with export icon)

HtmlSupportDataSchemaInlineElementDefinition

Api-interface iconinterface

A definition of data schema for inline elements.

Properties

  • Chevron-right icon

    allowEmpty?: boolean

    Indicates that an element should be preserved even if it has no content.

  • Chevron-right icon

    appliesToBlock?: string | boolean

    Indicates that element should not be converted as a model text attribute. It is used to map view elements that do not have a separate model element but their data is stored in a model attribute. For example <tbody> element does not have a dedicated model element and GHS stores attributes of <tbody> in the htmlTbodyAttributes model attribute of the table model element.

  • Additional metadata describing the model attribute.

  • Chevron-right icon

    The name of the model attribute that generates the same view element. GHS inline attribute will be removed from the model tree as soon as the coupled attribute is removed. See GHS post-fixer for more details.

  • Chevron-right icon

    isBlock?: boolean
    inherited

    Indicates that the definition describes block element. Set by registerBlockElement method.

  • Chevron-right icon

    isEmpty?: boolean
    inherited

    Indicates that the definition describes an empty HTML element like <hr>.

  • Chevron-right icon

    isInline?: boolean
    inherited

    Indicates that the definition describes inline element.

  • Chevron-right icon

    isObject?: boolean
    inherited

    Indicates that the definition describes object element.

  • Chevron-right icon

    model: string
    inherited

  • Chevron-right icon

    The model schema item definition describing registered model.

  • Chevron-right icon

    priority?: number

    Element priority. Decides in what order elements are wrapped by ViewDowncastWriter. Set by registerInlineElement method.

  • Chevron-right icon

    view?: string
    inherited

    Name of the view element.