# Preview

> Editor42 Preview plugin — opens a modal dialog with a full HTML preview of the current editor content.

Source: https://editor42.com/plugins/preview  
Every page of editor42.com has a Markdown copy at its URL + `.md` (`index.md` after a URL that ends in `/`); all of them are in one file: https://editor42.com/llms-full.txt

Plugin alias: `preview`

```js
editor42.init({
  plugins: 'preview'
});
```

Opens a modal dialog containing a sandboxed iframe that renders a full HTML preview of the current editor content. The preview includes the editor's content CSS, inline content styles, body class/id, and a script that prevents accidental link navigation.

## Options

This plugin does not register its own options. It reads the core options `content_style`, `content_css_cors`, `body_class`, and `body_id`.

## Commands

| Command | Description |
|---|---|
| `editor42Preview` | Opens the preview dialog. |

## Toolbar buttons

| Button | Type | Description |
|---|---|---|
| `preview` | Button | Opens the preview dialog. |

## Menu items

| Item | Description |
|---|---|
| `preview` | Opens the preview dialog. |
