---
title: "Contentstack App SDK Rich Text Editor"
description: "Contentstack App SDK Rich Text Editor"
url: "https://www.contentstack.com/docs/developers/sdks/contentstack-app-sdk/typescript/reference/contentstack-app-sdk-rich-text-editor"
product: "Contentstack"
doc_type: "guide"
audience:
  - developers
  - admins
version: "current"
last_updated: "2026-09-13"
---

# Contentstack App SDK Rich Text Editor

## Contentstack App SDK Rich Text Editor

The Rich Text Editor (RTE) provides extensibility through plugins and context-based APIs that enable developers to customize editing experiences and interact with entry data.

## RTEPlugin

The RTEPlugin function creates custom plugins for the Rich Text Editor.

#### rtePlugin(id, config)

The [rtePlugin](https://github.com/contentstack/app-sdk/blob/main/src/RTE/index.tsx) method registers a plugin with the RTE system.

```
import { rtePlugin } from '@contentstack/app-sdk';

rtePlugin('my-plugin', (rte) => {
  return {
    title: 'My Plugin',
    icon: '',
    render: (props) => {
      // Plugin implementation
    }
  };
});
```

## RTELocation

The RTELocation object provides access to the RTE context and entry data within rich text fields.

```
const rteLocation = sdk.location.RTELocation;
if (rteLocation) {
  const entry = rteLocation.entry;
  const entryData = entry.getData();
}
```

It supports only the [entry](/docs/developers/sdks/contentstack-app-sdk/typescript/reference#entry-object) core object: