Skip to main content
Skip table of contents

List of element names

This page details all the page elements that can be configured with the elements rule.

Text styles

Element

Example

Element names:

  • heading1

  • heading2

  • heading3

  • heading4

  • heading5

  • heading6

YAML
rules:
  - rule: elements
    description: Do not use Heading 1 style
    level: major
    blocked:
      - heading1

Element name: quote

YAML
rules:
  - rule: elements
    description: Do not use Quotes
    level: minor
    blocked:
      - quote

Element name: paragraph

YAML
rules:
  - rule: elements
    description: Allow only paragraph styling
    level: minor
    allowed:
      - paragraph

Element name: link

YAML
rules:
  - rule: elements
    description: Allow only links to the google.com domain
    level: major
    allowed: 
      - element: link
        href:
          - startsWith: https://google.com

Emoji

Element name

Example

Element name: emoji

YAML
rules:
  - rule: elements
    description: Avoid using emojis
    level: minor
    blocked: emoji

Tables

Element name

Example

Element name: table

YAML
rules:
  - rule: elements
    description: Avoid using tables
    level: minor
    blocked: table

Decision

Element

Example

Element name: decision

YAML
rules:
  - rule: elements
    description: Avoid using decision
    level: minor
    blocked: decision

Lists

Element

Example

Element names:

  • bulletList

  • numberedList

YAML
rules:
  - rule: elements
    description: Avoid using lists
    level: minor
    blocked:
      - numberedList
      - bulletList

Layouts

Element

Example

Element name: layout

Using the type and width parameters you can also specify more fine-grained which kind of layouts you want to allow/block.

Parameter type:

  • Two columns: two_equal

  • Three columns: three_equal

  • Right sidebar: two_right_sidebar

  • Left sidebar: two_left_sidebar

  • Three columns with sidebars: three_with_sidebars

Parameter width:

  • Center: default

  • Wide: wide

  • Full width: full-width

Using the type parameter:

YAML
rules:
  - rule: elements
    description: Avoid using three column layouts
    level: major
    blocked:
      - element: layout
        parameters:
          type:
            - three_equal
            - three_with_sidebars

Using the width parameter:

YAML
rules:
  - rule: elements
    description: Avoid using wide layouts
    level: major
    blocked:
      - element: layout
        parameters:
          width:
            - wide
            - full-width

Macros

Every element name in the configuration that does not match one of the above will be assumed to be a macro with that name. So this rule can be used as a drop-in replacement for the macros rule and is using the same names and parameter names.

Example:

YAML
# Avoid "Code snippet" macros

rules:
  - rule: elements
    level: major
    blocked: [code]

Missing elements for your use case?

The elements rule currently allows you to configure the most commonly used elements. If there is any specific editor element you need that is currently not supported please reach out to our support.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.