☁️ Loving our new documentation website? Provide feedback in the CloudCannon Community! ✨

editor_key

Table of contents

Description:

This key defines the editor key for repeating parser configurations.

The value is a string that specifies the key name of an input to use for editing repeating snippet instances.

Appears in:
└── Snippet
    └── params
        └── *
            └── Repeating Parser Configuration
                └── options
                    └── editor_key
Type:
string
Examples:

In this example, we have configured an editor key for repeating parser.

Copied to clipboard
_snippets:
  example:
    snippet: <<example [[repeating_content]]>>
    params:
      repeating_content:
        parser: repeating
        options:
          snippet: content
          editor_key: content_items
{
  "_snippets": {
    "example": {
      "snippet": "<<example [[repeating_content]]>>",
      "params": {
        "repeating_content": {
          "parser": "repeating",
          "options": {
            "snippet": "content",
            "editor_key": "content_items"
          }
        }
      }
    }
  }
}
Open in a new tab