# defaultEditorFor

> _Since v0.4.0_

Returns a default editor factory function for the given column type.
Each editor handles commit on blur/Enter, and cancel on Escape.

Note: Focus is NOT called here - the calling code handles focusing after DOM insertion.

```ts
function defaultEditorFor(column: AnyColumn): (ctx: ColumnEditorContext) => string | HTMLElement
```

## Parameters

| Name | Type | Description |
| ---- | ---- | ----------- |
| `column` | <code>AnyColumn</code> |  |
