# Define custom editor for the TreeList

## Environment

<table>
	<tbody>
		<tr>
			<td>Product Version</td>
			<td>5.12.0</td>
		</tr>
		<tr>
			<td>Product</td>
			<td>Progress® KendoReact TreeList</td>
		</tr>
	</tbody>
</table>

## Description

I want to change the default editor for the TreeList with one that supports maxLength

## Solution

The TreeList columns have editCell that accepts not only the default editors that are provided in the package, but also a custom component. The following example shows how to define custom editor with input element where the maxLength attribute is set for limiting the number of characters:

[Demo Source](https://demos.telerik.com/kendo-react-ui/knowledge-base/treelist/treelist-custom-editor/source.txt)
