li-target-length

History
VersionChange
release-2025-05Table dashboard support was added in the 2025-05 release.

Supported Features

Document
Media
Include
Document Creation Flow
Push Message
Table Dashboard
Display Filter
Search Indexing
System Metadata
Webhook Conditions

Description

This plugin is used to provide a suggested total character count for the text in the document.

Default UI

Input: Number input, or slider if steps are defined.

Editor: Difference, Total Characters, Target Range, Characters in Focussed Component

Target Length Indicator

Storage Format

{
  characters: <Integer>
}

Content Type Config

{
  handle: 'myContentType',
  // ...
  metadata: [
    {
      handle: 'myHandle'
      type: 'li-target-length',
      ui: {
        config: {
          acceptedCharacterDifference: 20, // Range above and below `value` considered accepted
          // optional, allows picking a step instead of entering an exact number
          steps: [
            {
              label: 'S', // use a short one, e.g. "S" "M" "L"
              value: 100 // number of characters
            },
            {
              label: 'M',
              value: 200
            }
          ],
          // optional, allows the input of an exact number besides picking a step
          allowAnyNumber: true,
          // optional, default: 'characters', options: 'characters' or 'lines', Added in: release-2025-07
          unit: 'lines', 
          // optional, Added in: release-2025-07
          showExactCountCheckbox: true
        }
      }
    }
    // ...
  ]
}