---
title: "Basic example"
description: "This example contains the plugins needed for the most common use cases."
canonical_url: "https://www.tiny.cloud/docs/tinymce/latest/basic-example/"
md_url: "https://www.tiny.cloud/docs/tinymce/5/basic-example/index.md"
version: "5"
last_updated: "2024-03-26T08:09:19Z"
tokens: 211
---
Important This page documents TinyMCE 5. For new projects, Tiny recommends using the latest, most up-to-date version. [See TinyMCE 8 documentation](../../latest/basic-example/).
# Basic example

## Interactive example

This example contains the plugins needed for the most common use cases.

**Example**

```js
tinymce.init({
  selector: 'textarea#basic-example',
  height: 500,
  menubar: false,
  plugins: [
    'advlist autolink lists link image charmap print preview anchor',
    'searchreplace visualblocks code fullscreen',
    'insertdatetime media table paste code help wordcount'
  ],
  toolbar: 'undo redo | formatselect | ' +
  'bold italic backcolor | alignleft aligncenter ' +
  'alignright alignjustify | bullist numlist outdent indent | ' +
  'removeformat | help',
  content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px }'
});
```
