# EuiEditorMaxlengthDirective

**Type:** directive

<p>Directive for enforcing maximum character length on eui-editor components.
Displays remaining character count indicator and prevents exceeding the specified limit.
Strips HTML tags when counting characters in HTML format mode.
Must be used with formControlName on eui-editor elements.
Automatically updates counter as content changes and applies error styling when limit exceeded.</p>


**Selector:** `[formControlName][euiEditorMaxlength]`

**Standalone:** false

## Inputs

- **euiEditorMaxlength**: `number` - <p>Maximum allowed character count for editor content.
Characters are counted after stripping HTML tags or formatting.
Required for directive to function.</p>

- **format**: `"html" | "json"` - <p>Content format of the editor being validated.
Determines how content is parsed for character counting.
&#39;html&#39; strips HTML tags, &#39;json&#39; parses Quill Delta format.</p>

- **isShowMaxlength**: `boolean` - <p>Shows or hides the remaining character count indicator.
When true, displays counter below editor showing characters remaining.
Counter turns red when limit is exceeded.</p>

