# Editor Customization

The `SchedulerFormEditor` component is rendered by the `SchedulerForm` component. It provides a set of `Field` components responsible for editing each individual field of `dateItem` being edited.

In order to enable further customization of the currently existing editable `fields` or to introduce new `fields` to the editor, we've exposed the [`editor`](https://www.telerik.com/kendo-react-ui/components/scheduler/api/schedulerformprops#editor) property, which enables:

* [Customizing the default editor](https://www.telerik.com/kendo-react-ui/components/scheduler/customization/form/editor#customizing-the-default-editor)—Customize some of the properties available to the default `SchedulerFormEditor` component.
* [Provide custom editor](https://www.telerik.com/kendo-react-ui/components/scheduler/customization/form/editor#provide-custom-editor)—Replace the default `editor` with an entirely custom one.

## Customizing the default editor

Before we begin with customizing the default `editor`, we must first import it. We're shipping the `SchedulerFormEditor` component through the `@progress/kendo-react-scheduler` package, so you can import it in any React project with the following import statement.

```jsx
const FormWithCustomEditor = (props) => {
    return (<SchedulerForm {...props} editor={CustomEditor} />)
}
...
return (
    <Scheduler form={FormWithCustomEditor} />
)
```

Since the `SchedulerFormEditor` is a composite component of the [`KendoReact FormElement`](https://www.telerik.com/kendo-react-ui/components/form/api/formelement). In addition to all properties of the `FormElement`, we provide additional properties for overriding any of the internal `field` editors.

### Extending the root element

Through the `editor` property of the `SchedulerForm` we can pass a modified version of the default `SchedulerFormEditor` component. Such modifications can include passing additional `className`, `style` or `horizontal` properties. For the full list of properties please refer to the [`SchedulerFormEditorProps`](https://www.telerik.com/kendo-react-ui/components/scheduler/api/schedulerformeditorprops) API.

The following example demonstrates how to customize the default `SchedulerFormEditor` component, by setting the `horizontal` property to false, which will render the component in vertical mode.

[Demo Source](https://demos.telerik.com/kendo-react-ui/scheduler/customization/editor/default-editor/extending-root/func/source.txt)

### Replacing default field editors

Another common scenario is replacing some of the internal `field` editors we expose, without explicitly having to re-write the whole editor by yourself.

For each `field`, we expose an `Editor` property and where applicable a `Label` property. For example, the `title` field editor can be replaced through the `titleEditor` property, the `start` and `end` fields expose both `startEditor`/`startLabel` and `endEditor`/`endLabel`, and the `allDay` field exposes `allDayEditor`/`allDayLabel`. For the full list of properties please refer to the [`SchedulerFormEditorProps`](https://www.telerik.com/kendo-react-ui/components/scheduler/api/schedulerformeditorprops) API.

The following example demonstrates how to provide custom editor components.

[Demo Source](https://demos.telerik.com/kendo-react-ui/scheduler/customization/editor/default-editor/replacing-editors/func/source.txt)

### Customizing the Recurrence Summary

Use the [`recurrenceSummaryTemplate`](https://www.telerik.com/kendo-react-ui/components/scheduler/api/schedulerformeditorprops#recurrenceSummaryTemplate) property to replace the summary shown below the recurrence button and inside the recurrence dialog. The template receives the `recurrenceRule`, the parsed rule, and the default summary text. It renders only when the event has a recurrence rule.

The following example customizes the recurrence summary in both the event editor and the recurrence dialog.

[Demo Source](https://demos.telerik.com/kendo-react-ui/scheduler/customization/editor/recurrence-summary/source.txt)

## Provide Custom Editor

Depending on the application requirements, sometimes entirely custom form implementation is necessary. Because of this we allow providing an entirely custom component as `editor`.
The communication between the `form` and the editor `fields` is achieved through the usage of the [`Field`](https://www.telerik.com/kendo-react-ui/components/form/api/field) component.

The following example demonstrates building an entirely custom `editor` in combination with custom `form`.

[Demo Source](https://demos.telerik.com/kendo-react-ui/scheduler/customization/editor/custom-editor/func/source.txt)

## See Also

* [KendoReact Scheduler](https://www.telerik.com/kendo-react-ui/components/scheduler/)
