---
title: "Preview plugin"
description: "Shows a popup of the current content in read-only format."
canonical_url: "https://www.tiny.cloud/docs/tinymce/latest/preview/"
md_url: "https://www.tiny.cloud/docs/tinymce/5/preview/index.md"
version: "5"
last_updated: "2024-04-16T01:50:26Z"
tokens: 142
---
Important This page documents TinyMCE 5. For new projects, Tiny recommends using the latest, most up-to-date version. [See TinyMCE 8 documentation](../../latest/preview/).
# Preview plugin

This plugin adds a preview button to the toolbar. Pressing the button opens a dialog box showing the current content in a preview mode. It also adds a menu item `Preview` under the `File` and `View` menu dropdowns.

## Basic setup

```js
tinymce.init({
  selector: 'textarea',  // change this value according to your HTML
  plugins: 'preview',
  menubar: 'view',
  toolbar: 'preview'
});
```
